Skip to content
Snippets Groups Projects
Commit f57dcc3b authored by Mattia Mancini's avatar Mattia Mancini
Browse files

OSB-45: using proper html/js/css file path

parent 0381fd64
No related branches found
No related tags found
1 merge request!89Monitoring maintenance Epic branch merge
......@@ -2,10 +2,10 @@ ARG TAG=latest
FROM lofar-maintenance-restservice:${TAG} as django_staticfiles_source
RUN source /opt/lofar/lofarinit.sh && \
mkdir -p /opt/lofar/var/www/static && \
cd /opt/lofar/var/www/static && \
python3 /opt/lofar/lib64/python3.6/site-packages/lofar/maintenance/manage.py collectstatic
mkdir -p /opt/lofar/share/www/static && \
cd /opt/lofar/share/www/static && \
python3 /opt/lofar/lib64/python3.6/site-packages/lofar/maintenance/manage.py collectstatic --noinput
FROM nginx:1.16.0
COPY --from=django_staticfiles_source /opt/lofar/var/www/ /opt/lofar/var/www/
COPY --from=django_staticfiles_source /opt/lofar/share/www/ /opt/lofar/share/www/
COPY nginx.conf /etc/nginx/conf.d/default.conf
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment