You've already forked reloading-manager
Reviewed-on: rrise/reloading-manager#18 Co-authored-by: Ron Rise <ron@siteworxpro.com> Co-committed-by: Ron Rise <ron@siteworxpro.com>
20 lines
284 B
Docker
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"] |