Files
mtusi2026lab2/Dockerfile
T
Rauf 94907ee68d
Skeleton contracts / contracts (pull_request) Canceled after 0s
feat: migrate backend to Golang (Gin + GORM)
2026-10-30 01:55:46 +03:00

13 lines
294 B
Docker

FROM golang:1.21-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o main .
FROM alpine:latest
RUN apk --no-cache add ca-certificates tzdata curl
WORKDIR /root/
COPY --from=builder /app/main .
EXPOSE 8080
CMD ["./main"]