softplayer-backend/Containerfile

13 lines
263 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
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /softplayer-backend
FROM scratch
COPY --from=0 /app/softplayer-backend /bin/softplayer-backend
CMD ["/bin/softplayer-backend"]