Skip to content
Snippets Groups Projects
Commit 5721c384 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-183: minor fixes

parent 8b93c42e
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
#
FROM ci_sas:latest
RUN mkdir /opt/lofar
RUN mkdir -p /opt/lofar
# Adding backend directory to make absolute filepaths consistent across services
WORKDIR /opt/lofar
......@@ -18,14 +18,10 @@ ENV LOFARROOT=/opt/lofar
# Add the rest of the code
COPY --chown=lofarsys:lofarsys ./installed /opt/lofar
RUN sed -i "s/lfr_root=.*/lfr_root=\/opt\/lofar/g" /opt/lofar/lofarinit.sh
# Make port 8000 available for the app
# Make port 8000,8008 available for the app
EXPOSE 8000
EXPOSE 8008
RUN sed -i "s/lfr_root=.*/lfr_root=\/opt\/lofar/g" /opt/lofar/lofarinit.sh
# Be sure to use 0.0.0.0 for the host within the Docker container,
# otherwise the browser won't be able to find it
# CMD python3 manage.py runserver 0.0.0.0:8000
# CMD bash -c 'source /opt/lofar/lofarinit.sh && tmss'
CMD bash -c 'source /opt/lofar/lofarinit.sh && python3 lib/python3.6/site-packages/lofar/sas/tmss/manage.py runserver 0.0.0.0:8000'
\ No newline at end of file
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