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 ace13e1fe9
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 25s
Update debian:stable-slim Docker digest to 5c8f790
2024-08-13 01:02:00 +00:00

18 lines
462 B
Docker

FROM golang:1.22@sha256:2bd56f00ff47baf33e64eae7996b65846c7cb5e0a46e0a882ef179fd89654afa 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:5c8f79065d3b2cddfa065891803c0a81f7c7624224591cc72c2a8a858db7d015
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"]