Skip to content

Commit eb9a552

Browse files
committed
fix: Dockerfile $PORT should be just a port
1 parent acaae4e commit eb9a552

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ RUN make build/chromad
3232
FROM alpine:3.19 AS runtime
3333

3434
# Install ca-certificates for HTTPS requests
35-
RUN apk --no-cache add ca-certificates
35+
RUN apk --no-cache add ca-certificates curl
3636

3737
# Create a non-root user
3838
RUN addgroup -g 1001 chromad && \
@@ -54,12 +54,12 @@ USER chromad
5454
EXPOSE 8080
5555

5656
# Set default environment variables
57-
ENV PORT=0.0.0.0:8080
57+
ENV PORT=8080
5858
ENV CHROMA_CSRF_KEY="testtest"
5959

6060
# Health check
6161
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
6262
CMD curl -fsSL http://127.0.0.1:8080/ > /dev/null
6363

6464
# Run the application
65-
CMD ["sh", "-c", "./chromad --csrf-key=$CHROMA_CSRF_KEY --bind=$PORT"]
65+
CMD ["sh", "-c", "./chromad --csrf-key=$CHROMA_CSRF_KEY --bind=0.0.0.0:$PORT"]

0 commit comments

Comments
 (0)