softplayer-backend/Containerfile

14 lines
238 B
Plaintext
Raw Permalink 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-05-05 17:52:41 +00:00
COPY --from=0 /etc/ssl /etc/ssl
2024-03-19 16:18:20 +00:00
ENTRYPOINT ["/app"]