fix(docker): switch Dockerfile to Poetry
This commit is contained in:
parent
f611b685b3
commit
609fee445f
@ -8,10 +8,11 @@ WORKDIR /run
|
|||||||
|
|
||||||
RUN mkdir -p /.local && \
|
RUN mkdir -p /.local && \
|
||||||
chmod -R 777 /.local && \
|
chmod -R 777 /.local && \
|
||||||
pip install -U pip
|
pip install -U pip poetry
|
||||||
|
|
||||||
COPY requirements.txt /run/requirements.txt
|
COPY pyproject.toml /run/pyproject.toml
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
COPY poetry.lock /run/poetry.lock
|
||||||
|
RUN poetry install --withouit dev --no-root
|
||||||
|
|
||||||
ENTRYPOINT ["python3", "-B", "-m", "app.main"]
|
ENTRYPOINT ["python3", "-B", "-m", "app.main"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user