File tree 2 files changed +5
-4
lines changed
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
72
72
RUN apt-get update && apt-get install -y --no-install-recommends \
73
73
libgomp1 \
74
74
nginx \
75
+ gettext-base \
75
76
&& rm -rf /var/lib/apt/lists/*
76
77
77
78
# Create a non-root user
@@ -81,6 +82,7 @@ RUN useradd -m -u 1000 -r codegate
81
82
# Set permissions for user codegate to run nginx
82
83
RUN chown -R codegate /var/lib/nginx && \
83
84
chown -R codegate /var/log/nginx && \
85
+ chown -R codegate /etc/nginx && \
84
86
chown -R codegate /run
85
87
86
88
COPY nginx.conf /etc/nginx/nginx.conf
Original file line number Diff line number Diff line change @@ -28,11 +28,10 @@ generate_certs() {
28
28
29
29
# Function to start Nginx server for the dashboard
30
30
start_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
35
31
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
+
36
35
nginx -g ' daemon off;' &
37
36
}
38
37
You can’t perform that action at this time.
0 commit comments