This commit is contained in:
m
2026-07-12 10:51:09 +02:00
parent 874d8679ac
commit f303ac8b5c
5 changed files with 188 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
FROM golang:1.24-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /bin/server ./cmd/server
FROM alpine:3.21
RUN apk add --no-cache ca-certificates curl
WORKDIR /app
COPY --from=builder /bin/server .
COPY internal/db/migrations ./internal/db/migrations
RUN mkdir -p /app/uploads /data
EXPOSE 8080
CMD ["./server"]