Skip to content

Commit

Permalink
fix: fix docker build path error
Browse files Browse the repository at this point in the history
  • Loading branch information
peterxcli committed Feb 4, 2024
1 parent 58b27b5 commit f9dc22e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile_Backend
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN go mod download
# ENV CGO_ENABLED=1

# Build the Go application
RUN CGO_ENABLED=1 GOOS=linux go build -o /app/main ./cmd/main.go
RUN CGO_ENABLED=1 GOOS=linux go build -o /app/main ./cmd/backend/main.go

# Runtime Stage
FROM busybox AS runtime
Expand All @@ -23,4 +23,4 @@ FROM busybox AS runtime
COPY --from=build /app/main /app

# Set the entry point to execute the binary directly
ENTRYPOINT ["/app"]
ENTRYPOINT ["/app"]
2 changes: 1 addition & 1 deletion Dockerfile_Notifier
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN go mod download
# ENV CGO_ENABLED=1

# Build the Go application
RUN CGO_ENABLED=1 GOOS=linux go build -o /app/main ./cmd/notification.go
RUN CGO_ENABLED=1 GOOS=linux go build -o /app/main ./cmd/notifier/main.go

# Runtime Stage
FROM busybox AS runtime
Expand Down

0 comments on commit f9dc22e

Please sign in to comment.