mirror of
https://github.com/88lex/safire.git
synced 2025-02-23 21:34:39 +08:00
change docker base image
This commit is contained in:
parent
85d7301c39
commit
8257eebf6a
1 changed files with 4 additions and 11 deletions
15
Dockerfile
15
Dockerfile
|
@ -1,22 +1,15 @@
|
||||||
FROM python:3.8.5-buster
|
FROM python:3.8.5-slim
|
||||||
|
|
||||||
# FROM ubuntu
|
# FROM ubuntu
|
||||||
# RUN apt-get update -y
|
# RUN apt-get update -y
|
||||||
# RUN apt-get install -y python3-pip python-dev build-essential
|
# RUN apt-get install -y python3-pip python-dev build-essential
|
||||||
|
|
||||||
ENV MAX_PROJECTS=100
|
|
||||||
ENV SAS_PER_PROJECT=100
|
|
||||||
ENV EMAIL_PREFIX=svcacc
|
|
||||||
ENV PROJECT_PREFIX=UniqPrefix
|
|
||||||
ENV JSON_PREFIX=svcacc
|
|
||||||
|
|
||||||
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
|
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
|
||||||
RUN pip3 install poetry
|
RUN pip3 install poetry
|
||||||
WORKDIR /opt
|
WORKDIR /root
|
||||||
COPY poetry.lock pyproject.toml /opt/
|
COPY poetry.lock pyproject.toml /root/
|
||||||
|
|
||||||
RUN poetry config virtualenvs.create false
|
RUN poetry config virtualenvs.create false
|
||||||
RUN poetry install --no-interaction
|
RUN poetry install --no-interaction
|
||||||
COPY . /opt
|
COPY . /root
|
||||||
|
|
||||||
# CMD ["bash"]
|
# CMD ["bash"]
|
Loading…
Reference in a new issue