Files
reloading-manager/backend/Dockerfile
Ron Rise 7967a54f29 fix some fucking errors (#18)
Reviewed-on: rrise/reloading-manager#18
Co-authored-by: Ron Rise <ron@siteworxpro.com>
Co-committed-by: Ron Rise <ron@siteworxpro.com>
2025-04-17 17:01:32 -04:00

20 lines
284 B
Docker

FROM siteworxpro/golang:1.24.0 AS build
WORKDIR /app
ARG CGO_ENABLED=0
ARG GOOS=linux
ARG GOPROXY=direct
ARG GOPRIVATE=git.siteworxpro.com
ADD . .
RUN go mod tidy
RUN go build -o app
FROM scratch
COPY --from=build /app/app .
ADD ./migrations /app/migrations
ENTRYPOINT ["/app"]