Some checks failed
release-tag / release-image (push) Has been cancelled
build-binaries / build (, amd64, linux) (push) Has been cancelled
build-binaries / build (, arm, 7, linux) (push) Has been cancelled
build-binaries / build (, arm64, linux) (push) Has been cancelled
build-binaries / build (.exe, amd64, windows) (push) Has been cancelled
build-binaries / release (push) Has been cancelled
12 lines
262 B
Docker
12 lines
262 B
Docker
FROM golang:1.24.4
|
|
WORKDIR /app
|
|
COPY go.mod ./
|
|
RUN go mod download
|
|
COPY *.go ./
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /goprg
|
|
RUN mkdir /data
|
|
COPY services.json /data/services.json
|
|
##COPY services.json /services.json
|
|
VOLUME ["/data"]
|
|
EXPOSE 8080
|
|
CMD ["/goprg"] |