Skip to content

Commit

Permalink
Changes to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Suhaibinator committed Oct 13, 2024
1 parent b591239 commit 008b855
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ WORKDIR /src
# Copy the Go source code to the builder container
COPY . .

# Set environment variables for cross-compilation
ENV CGO_ENABLED=1
ENV GOOS=linux

# Build the Go application
RUN CGO_ENABLED=1 GOOS=linux go build -o SuhaibMessageQueue
RUN go build -o SuhaibMessageQueue

# Stage 2: Create the final image
FROM alpine:latest
Expand Down

0 comments on commit 008b855

Please sign in to comment.