mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-08-23 22:28:43 +08:00
make server & router reusable outside asynqmon package
This commit is contained in:
@@ -36,13 +36,13 @@ RUN go mod download
|
||||
COPY . .
|
||||
|
||||
# Copy frontend static files from /static to the root folder of the backend container.
|
||||
COPY --from=frontend ["/static/build", "ui/build"]
|
||||
COPY --from=frontend ["/static/build", "ui-assets"]
|
||||
|
||||
# Set necessary environmet variables needed for the image and build the server.
|
||||
ENV CGO_ENABLED=0 GOOS=linux GOARCH=amd64
|
||||
|
||||
# Run go build (with ldflags to reduce binary size).
|
||||
RUN go build -ldflags="-s -w" -o asynqmon .
|
||||
RUN go build -ldflags="-s -w" -o asynqmon ./cmd/asynqmon
|
||||
|
||||
#
|
||||
# Third stage:
|
||||
@@ -55,4 +55,4 @@ FROM scratch
|
||||
COPY --from=backend ["/build/asynqmon", "/"]
|
||||
|
||||
# Command to run when starting the container.
|
||||
ENTRYPOINT ["/asynqmon"]
|
||||
ENTRYPOINT ["/asynqmon"]
|
||||
|
Reference in New Issue
Block a user