You've already forked reloading-manager
20 lines
280 B
Docker
20 lines
280 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 /migrations
|
|
|
|
ENTRYPOINT ["/app"] |