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 8ac3a4f617
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 9s
Pin debian Docker tag to 6c07c2a
2024-07-30 08:11:57 +00:00

17 lines
400 B
Docker

FROM golang:1.22@sha256:86a3c48a61915a8c62c0e1d7594730399caa3feb73655dfe96c7bc17710e96cf 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@sha256:6c07c2a542b2f1f477bb9b2f218e3b1f46266ec5db68801ad3129a36bff89004
WORKDIR /app
COPY --from=builder /bin/api ./api
COPY migrations ./migrations
EXPOSE 8080
ENTRYPOINT ["/app/api"]