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
Tim 0df0e7f6f9
Some checks failed
Build Docker Image / Explore-Gitea-Actions (push) Failing after 59s
#73 setup password hashing with argin2id and update some infra
2024-08-10 00:14:38 +02:00

17 lines
429 B
Docker

FROM golang:1.22@sha256:2bd56f00ff47baf33e64eae7996b65846c7cb5e0a46e0a882ef179fd89654afa AS builder
WORKDIR /app
COPY . ./
RUN go build -o /bin/api ./main.go
FROM debian:stable-slim@sha256:57bd74e95092e6d4c0cdb6e36ca3db5bb828c2f592788734d1a707a4b92e7755
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"]