Skip to content

Commit eaadf51

Browse files
committed
Add PORT
1 parent b11dae0 commit eaadf51

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ RUN CGO_ENABLED=0 GOOS=linux go build -tags timetzdata -o ./bin/main ./cmd/serve
2828
# Runtime stage
2929
FROM alpine:3
3030

31+
ENV PORT=8080
32+
3133
# Install runtime dependencies
3234
RUN apk add --no-cache ca-certificates
3335

@@ -51,7 +53,7 @@ RUN chown -R appuser:appuser /app
5153
USER appuser
5254

5355
# Expose port
54-
EXPOSE 8080
56+
EXPOSE $PORT
5557

5658
# Run the application
5759
CMD ["/app/main"]

0 commit comments

Comments
 (0)