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 47450f8b99
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 6s
#13 action for automatically building and pushing docker images
Co-authored-by: Tim <timwundenberg@outlook.de>
Reviewed-on: tim/me-fit#20
2024-07-28 21:48:46 +02:00

16 lines
243 B
Docker

FROM golang:1.22 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
COPY --from=builder /bin/api /app/api
COPY migrations /migrations
EXPOSE 8080
CMD ["/app/api"]