video-server-backend/Dockerfile
Jose134 5d28505b3e
Some checks failed
gitea/video-server-backend/pipeline/head There was a failure building this commit
asdf
2024-08-10 02:06:52 +02:00

13 lines
316 B
Docker

FROM golang:1.22
WORKDIR /usr/src/app
# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . .
RUN go build -v -o /usr/local/bin/app ./cmd/video_server_backend/main.go
CMD ["app"]