Skip to content

Commit

Permalink
feat: update Dockerfile to specify the main binary path
Browse files Browse the repository at this point in the history
  • Loading branch information
peterxcli committed Feb 18, 2024
1 parent 5a1c5c7 commit 4b9a850
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Dockerfile_Backend
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ FROM alpine:latest AS runtime
RUN apk --no-cache add ca-certificates

# Copy the binary from the build stage to the runtime stage
COPY --from=build /app/main /app

COPY --from=build /app/main /app/main
WORKDIR /app
# Set the entry point to execute the binary directly
ENTRYPOINT ["/app"]
ENTRYPOINT /app/main
6 changes: 3 additions & 3 deletions Dockerfile_Notifier
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ FROM alpine:latest AS runtime
RUN apk --no-cache add ca-certificates

# Copy the binary from the build stage to the runtime stage
COPY --from=build /app/main /app

COPY --from=build /app/main /app/main
WORKDIR /app
# Set the entry point to execute the binary directly
ENTRYPOINT ["/app"]
ENTRYPOINT /app/main

0 comments on commit 4b9a850

Please sign in to comment.