mirror of
https://github.com/88lex/safire.git
synced 2024-11-13 02:27:18 +08:00
dockerfile from master 1activegeek
This commit is contained in:
parent
8257eebf6a
commit
05d0f341dd
1 changed files with 4 additions and 11 deletions
15
Dockerfile
15
Dockerfile
|
@ -1,15 +1,8 @@
|
||||||
FROM python:3.8.5-slim
|
FROM python:3.8.5-slim
|
||||||
# FROM ubuntu
|
|
||||||
# RUN apt-get update -y
|
|
||||||
# RUN apt-get install -y python3-pip python-dev build-essential
|
|
||||||
|
|
||||||
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
|
COPY requirements.txt /requirements.txt
|
||||||
RUN pip3 install poetry
|
|
||||||
WORKDIR /root
|
|
||||||
COPY poetry.lock pyproject.toml /root/
|
|
||||||
|
|
||||||
RUN poetry config virtualenvs.create false
|
RUN pip3 install -r /requirements.txt && \
|
||||||
RUN poetry install --no-interaction
|
pip3 install safire
|
||||||
COPY . /root
|
|
||||||
|
|
||||||
# CMD ["bash"]
|
WORKDIR /root/
|
Loading…
Reference in a new issue