net/forest/Dockerfile
2024-05-04 02:09:53 +03:00

23 lines
477 B
Docker

# syntax = docker/dockerfile:1.6
FROM python:3-bookworm
# install dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
netcat-openbsd \
gcc \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# create the appropriate directories
ENV APP_HOME=/app
RUN mkdir $APP_HOME
WORKDIR $APP_HOME
# copy project
COPY . $APP_HOME
RUN --mount=type=cache,target=/root/.cache \
pip3 install -r requirements.txt
CMD ["python","app.py"]