mirror of
https://github.com/88lex/safire.git
synced 2024-11-10 08:55:42 +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 ubuntu
|
||||
# RUN apt-get update -y
|
||||
# RUN apt-get install -y python3-pip python-dev build-essential
|
||||
|
||||
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
|
||||
RUN pip3 install poetry
|
||||
WORKDIR /root
|
||||
COPY poetry.lock pyproject.toml /root/
|
||||
COPY requirements.txt /requirements.txt
|
||||
|
||||
RUN poetry config virtualenvs.create false
|
||||
RUN poetry install --no-interaction
|
||||
COPY . /root
|
||||
RUN pip3 install -r /requirements.txt && \
|
||||
pip3 install safire
|
||||
|
||||
# CMD ["bash"]
|
||||
WORKDIR /root/
|
Loading…
Reference in a new issue