We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6634fca commit 6656044Copy full SHA for 6656044
Dockerfile
@@ -100,6 +100,10 @@ COPY --from=builder /app /app
100
101
# Copy necessary artifacts from the webbuilder stage
102
COPY --from=webbuilder /usr/src/webapp/dist /var/www/html
103
+USER root
104
+RUN chown -R codegate /var/www/html
105
+USER codegate
106
+
107
# Expose nginx
108
EXPOSE 9090
109
scripts/entrypoint.sh
@@ -28,6 +28,10 @@ generate_certs() {
28
29
# Function to start Nginx server for the dashboard
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
echo "Starting the dashboard..."
36
nginx -g 'daemon off;' &
37
}
0 commit comments