2022-06-12 20:02:05 +02:00
|
|
|
#Building main conteiner
|
2022-06-12 22:28:16 +02:00
|
|
|
FROM python:slim-buster
|
2022-06-11 21:57:50 +02:00
|
|
|
|
2022-06-28 13:26:06 +02:00
|
|
|
RUN apt-get update && apt-get -y install build-essential libboost-system-dev libboost-thread-dev
|
2022-06-11 21:57:50 +02:00
|
|
|
|
|
|
|
|
RUN mkdir /execute
|
|
|
|
|
WORKDIR /execute
|
|
|
|
|
|
2022-06-12 22:28:16 +02:00
|
|
|
COPY ./backend/ /execute/
|
2022-06-28 13:26:06 +02:00
|
|
|
RUN pip install --no-cache-dir -r /execute/requirements.txt
|
2022-06-26 12:15:17 +02:00
|
|
|
|
|
|
|
|
ARG GCC_PARAMS
|
|
|
|
|
RUN c++ -O3 $GCC_PARAMS -o proxy/proxy proxy/proxy.cpp -pthread -lboost_system -lboost_thread
|
|
|
|
|
|
2022-06-21 10:37:02 +02:00
|
|
|
COPY ./frontend/build/ ./frontend/
|
2022-06-12 20:02:05 +02:00
|
|
|
|
2022-06-11 21:57:50 +02:00
|
|
|
RUN usermod -a -G root nobody
|
|
|
|
|
RUN chown -R nobody:root /execute && \
|
|
|
|
|
chmod -R 660 /execute && chmod -R u+X /execute
|
|
|
|
|
|
2022-06-13 18:44:11 +02:00
|
|
|
RUN chmod ug+x /execute/proxy/proxy
|
|
|
|
|
|
2022-06-28 13:26:06 +02:00
|
|
|
ENTRYPOINT ["python3", "app.py", "DOCKER"]
|
2022-06-12 20:02:05 +02:00
|
|
|
|
|
|
|
|
|