First commit
This commit is contained in:
11
backend/Dockerfile
Normal file
11
backend/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM golang:1.18.3 AS builder
|
||||
WORKDIR /usr/src/app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download && go mod verify
|
||||
COPY . .
|
||||
RUN go build -buildvcs=false -v -o /usr/local/bin/ ./...
|
||||
|
||||
FROM golang:1.18.3
|
||||
WORKDIR /usr/local/bin
|
||||
COPY --from=builder /usr/local/bin/backend .
|
||||
CMD ["backend", "migrate", "serve"]
|
Reference in New Issue
Block a user