This repository was archived by the owner on Jun 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ FROM python:3.12-slim AS runtime
7272RUN apt-get update && apt-get install -y --no-install-recommends \
7373 libgomp1 \
7474 nginx \
75+ gettext-base \
7576 && rm -rf /var/lib/apt/lists/*
7677
7778# Create a non-root user
@@ -81,6 +82,7 @@ RUN useradd -m -u 1000 -r codegate
8182# Set permissions for user codegate to run nginx
8283RUN chown -R codegate /var/lib/nginx && \
8384 chown -R codegate /var/log/nginx && \
85+ chown -R codegate /etc/nginx && \
8486 chown -R codegate /run
8587
8688COPY nginx.conf /etc/nginx/nginx.conf
Original file line number Diff line number Diff line change @@ -28,11 +28,10 @@ generate_certs() {
2828
2929# Function to start Nginx server for the dashboard
3030start_dashboard () {
31- if [ -n " ${DASHBOARD_BASE_URL} " ]; then
32- echo " Overriding dashboard url with $DASHBOARD_BASE_URL "
33- sed -ibck " s|http://localhost:8989|http://$DASHBOARD_BASE_URL :8989|g" /var/www/html/assets/* .js
34- fi
3531 echo " Starting the dashboard..."
32+
33+ envsubst ' ${DASHBOARD_API_BASE_URL}' < /var/www/html/index.html > /var/www/html/index.html.tmp && mv /var/www/html/index.html.tmp /var/www/html/index.html
34+
3635 nginx -g ' daemon off;' &
3736}
3837
You can’t perform that action at this time.
0 commit comments