FROM python:3.9 RUN mkdir /app COPY /app /app COPY pyproject.toml /app COPY poetry.lock /app WORKDIR /app ENV PYTHONPATH=${PYTHONPATH}:${PWD} RUN pip3 install poetry RUN poetry config virtualenvs.create false RUN poetry install --no-dev ENTRYPOINT poetry run python webserver.py --storage /files