fix(docker): switch Dockerfile to Poetry

This commit is contained in:
Luke Tainton 2024-11-24 09:42:28 +00:00
parent f611b685b3
commit 609fee445f
No known key found for this signature in database

View File

@ -8,10 +8,11 @@ WORKDIR /run
RUN mkdir -p /.local && \
chmod -R 777 /.local && \
pip install -U pip
pip install -U pip poetry
COPY requirements.txt /run/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY pyproject.toml /run/pyproject.toml
COPY poetry.lock /run/poetry.lock
RUN poetry install --withouit dev --no-root
ENTRYPOINT ["python3", "-B", "-m", "app.main"]