Skip to content
Snippets Groups Projects
Dockerfile 504 B
Newer Older
Chris Hines's avatar
Chris Hines committed
FROM ubuntu
WORKDIR /opt/strudel2/src
COPY . /opt/strudel2/src
Chris Hines's avatar
Chris Hines committed
RUN apt update
RUN apt install -y python3 gcc python3-pip
RUN cd TES
RUN pip3 install -r requirements.txt
RUN python3 setup.py install
RUN cd ../TWS
Chris Hines's avatar
Chris Hines committed
RUN pip3 install -r requirements.txt
RUN python3 setup.py install
EXPOSE 8080
Chris Hines's avatar
Chris Hines committed
CMD ["uwsgi", \
        "--socket", "0.0.0.0:8080", \
        "--buffer-size","65536", \
        "--workers","1", \
        "--threads","8", \
        "--protocol=http", \
        "-w", "tes.tes_wsgi"]