Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,16 @@ COPY --from=builder /docs/site /usr/share/nginx/html
# Create health check endpoint
RUN echo '{"status":"healthy"}' > /usr/share/nginx/html/health

# Configure nginx to listen on port 8000
RUN sed -i 's/listen 80;/listen 8000;/' /etc/nginx/conf.d/default.conf
# Configure nginx to listen on port 8000 and set Content-Type for /health
RUN sed -i 's/listen 80;/listen 8000;/' /etc/nginx/conf.d/default.conf && \
cat >> /etc/nginx/conf.d/default.conf << 'EOF'

# Health check endpoint with proper Content-Type
location = /health {
default_type application/json;
add_header Content-Type application/json;
}
EOF

# Expose port 8000 (same as base image)
EXPOSE 8000
Expand Down