Commit edcaf579 authored by Antoine Suel's avatar Antoine Suel
Browse files

Docker: docker changed in order to test assignments localy in browser.

* Dockerfile: here.
parent 2242c1ea
FROM python:3.7
WORKDIR /opt
WORKDIR /opt/assignment/_build/html/
ENV PATH $PATH:/opt/assignment
......@@ -8,4 +8,12 @@ COPY requirements.txt /opt/assignment/requirements.txt
COPY Makefile /opt/assignment/Makefile
COPY source/ /opt/assignment/source
RUN pip install -r /opt/assignment/requirements.txt && cd /opt/assignment && make html
RUN pip install -r /opt/assignment/requirements.txt && cd /opt/assignment && make html
EXPOSE 80
ENTRYPOINT ["python", "-m", "http.server", "80"]
# docker build -t test .
# docker run -p 80:80 test
# browser -> localhost:80
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment