This repository has been archived on 2025-08-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
web-app-template/api/Dockerfile
Renovate Bot 6a31ebc72c
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 10s
Update golang:1.22 Docker digest to bb9d8c4
2024-08-13 15:00:46 +00:00

18 lines
462 B
Docker

FROM golang:1.22@sha256:bb9d8c48543148d038e2d76ffcc12ee7c80d3cb0132b325c1983680ca04d320d AS builder
WORKDIR /app
COPY go.mod go.sum main.go ./
COPY src src
RUN go build -o /bin/api ./main.go
FROM debian:stable-slim@sha256:382967fd7c35a0899ca3146b0b73d0791478fba2f71020c7aa8c27e3a4f26672
RUN apt-get update && apt-get install -y ca-certificates
WORKDIR /app
COPY --from=builder /bin/api ./api
COPY migrations ./migrations
EXPOSE 8080
ENTRYPOINT ["/app/api"]