Files
tracker/Dockerfile
Vadim 1cee55a0cf
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 49s
wip ci/cd
2026-03-07 19:10:32 +03:00

15 lines
319 B
Docker

# --- Stage 1: builder ---
FROM golang:1.25 AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o main ./cmd/main.go
# --- Stage 2: Runner ---
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/main .
COPY --from=builder /app/config .
EXPOSE 3000
CMD ["./main"]