All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 6s
Co-authored-by: Tim <timwundenberg@outlook.de> Reviewed-on: tim/me-fit#20
16 lines
243 B
Docker
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"]
|
|
|