softplayer-backend/Containerfile

13 lines
206 B
Plaintext
Raw Normal View History

2024-03-19 15:49:29 +00:00
FROM golang:1.22
WORKDIR /app
COPY go.mod ./
COPY go.sum ./
RUN go mod download
2024-03-19 15:58:05 +00:00
COPY . ./
2024-03-19 16:12:24 +00:00
RUN CGO_ENABLED=0 GOOS=linux go build -o backend
2024-03-19 15:49:29 +00:00
FROM scratch
2024-03-19 16:12:24 +00:00
COPY --from=0 /app/backend /app
2024-03-19 16:18:20 +00:00
ENTRYPOINT ["/app"]