Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
forcodedancing committed Oct 10, 2023
1 parent 0355c2a commit 6a0199a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions monitor-distroless.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ RUN make build_monitor

FROM gcr.io/distroless/cc-debian11:latest

ENV DATA_MARKETPLACE_HOME /opt/app
ENV CONFIG_FILE_PATH $DATA_MARKETPLACE_HOME/config/config.json
ENV CONFIG_FILE_PATH /opt/app/config/config.json

ENV WORKDIR=/app
WORKDIR ${WORKDIR}
COPY --from=builder /opt/app/build/monitor ${WORKDIR}

# Run the app
ENTRYPOINT ["/app/monitor", "--config-path", "$CONFIG_FILE_PATH"]
ENTRYPOINT /app/monitor --config-path "$CONFIG_FILE_PATH"
5 changes: 2 additions & 3 deletions server-distroless.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ RUN make build_server

FROM gcr.io/distroless/cc-debian11:latest

ENV DATA_MARKETPLACE_HOME /opt/app
ENV CONFIG_FILE_PATH $DATA_MARKETPLACE_HOME/config/config.json
ENV CONFIG_FILE_PATH /opt/app/config/config.json

ENV WORKDIR=/app
WORKDIR ${WORKDIR}
COPY --from=builder /opt/app/build/server ${WORKDIR}

# Run the app
ENTRYPOINT ["/app/server", "--config-path", "$CONFIG_FILE_PATH", "--port", "8080"]
ENTRYPOINT /app/server --port, 8080 --config-path "$CONFIG_FILE_PATH"

0 comments on commit 6a0199a

Please sign in to comment.