1
0
Fork 0
This repository has been archived on 2025-08-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
mareshq-backoffice-v2-api/Dockerfile

22 lines
313 B
Docker

FROM golang:1.22.0-alpine AS builder
WORKDIR /build
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o backend .
FROM alpine:3.19
EXPOSE 8080
WORKDIR /app
RUN apk add --no-cache ca-certificates
COPY --from=builder /build/backend .
CMD ["/app/backend", "server"]