We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b11dae0 commit eaadf51Copy full SHA for eaadf51
1 file changed
Dockerfile
@@ -28,6 +28,8 @@ RUN CGO_ENABLED=0 GOOS=linux go build -tags timetzdata -o ./bin/main ./cmd/serve
28
# Runtime stage
29
FROM alpine:3
30
31
+ENV PORT=8080
32
+
33
# Install runtime dependencies
34
RUN apk add --no-cache ca-certificates
35
@@ -51,7 +53,7 @@ RUN chown -R appuser:appuser /app
51
53
USER appuser
52
54
55
# Expose port
-EXPOSE 8080
56
+EXPOSE $PORT
57
58
# Run the application
59
CMD ["/app/main"]
0 commit comments