Files
firegex-traffic-viewer/Dockerfile
2022-06-28 13:26:06 +02:00

26 lines
645 B
Docker
Executable File

#Building main conteiner
FROM python:slim-buster
RUN apt-get update && apt-get -y install build-essential libboost-system-dev libboost-thread-dev
RUN mkdir /execute
WORKDIR /execute
COPY ./backend/ /execute/
RUN pip install --no-cache-dir -r /execute/requirements.txt
ARG GCC_PARAMS
RUN c++ -O3 $GCC_PARAMS -o proxy/proxy proxy/proxy.cpp -pthread -lboost_system -lboost_thread
COPY ./frontend/build/ ./frontend/
RUN usermod -a -G root nobody
RUN chown -R nobody:root /execute && \
chmod -R 660 /execute && chmod -R u+X /execute
RUN chmod ug+x /execute/proxy/proxy
ENTRYPOINT ["python3", "app.py", "DOCKER"]