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

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"]