Files
backend/Dockerfile
Yi-Ting Shih 87ae3b76c2
All checks were successful
Go test / run-go-vet (push) Successful in 6s
Go test / check-swagger-up-to-date (push) Successful in 9s
Go test / run-go-test (push) Successful in 25s
Go test / cleanup-go-test (push) Successful in 13s
Go test / release-image (push) Successful in 3m32s
Fix: specify build target
2025-12-09 02:23:55 +08:00

22 lines
377 B
Docker

FROM docker.io/library/golang:1.25 AS build
WORKDIR /work
COPY . .
RUN make backend
FROM docker.io/library/debian:13-slim AS build-run
COPY --from=build /work/backend /work/backend
WORKDIR /work
ENTRYPOINT ["/work/backend"]
CMD ["serve"]
FROM docker.io/library/debian:13-slim AS native
COPY backend /work/backend
WORKDIR /work
ENTRYPOINT ["/work/backend"]
CMD ["serve"]