Skip to content

Commit

Permalink
chore: Update Dockerfile to include environment flag for building the…
Browse files Browse the repository at this point in the history
… Go application
  • Loading branch information
waveyboym committed Jun 27, 2024
1 parent 7471b8e commit 1344309
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions occupi-backend/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ RUN go mod download && go mod verify
COPY . .

# Build the Go application
RUN go build -o occupi-backend ./cmd/occupi-backend -env=dev.deployed
RUN go build -o occupi-backend ./cmd/occupi-backend

# Expose the port the app runs on
EXPOSE 8081

# Command to run the executable
CMD ["./occupi-backend"]
CMD ["./occupi-backend", "-env=dev.deployed"]
4 changes: 2 additions & 2 deletions occupi-backend/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ RUN go mod download && go mod verify
COPY . .

# Build the Go application
RUN go build -o occupi-backend ./cmd/occupi-backend -env=prod
RUN go build -o occupi-backend ./cmd/occupi-backend

# Expose the port the app runs on
EXPOSE 8080

# Command to run the executable
CMD ["./occupi-backend"]
CMD ["./occupi-backend", "-env=prod"]

0 comments on commit 1344309

Please sign in to comment.