safire/Dockerfile

22 lines
471 B
Text
Raw Normal View History

2020-08-06 17:59:12 +08:00
FROM python:3.8.5-buster
# FROM ubuntu
# RUN apt-get update -y
# RUN apt-get install -y python3-pip python-dev build-essential
2020-08-06 10:43:35 +08:00
ENV MAX_PROJECTS=100
ENV SAS_PER_PROJECT=100
ENV EMAIL_PREFIX=svcacc
ENV PROJECT_PREFIX=UniqPrefix
ENV JSON_PREFIX=svcacc
2020-08-06 12:37:05 +08:00
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
2020-08-06 17:59:12 +08:00
RUN pip3 install poetry
2020-08-06 10:43:35 +08:00
WORKDIR /opt
2020-08-06 12:37:05 +08:00
COPY poetry.lock pyproject.toml /opt/
2020-08-06 10:43:35 +08:00
2020-08-06 12:37:05 +08:00
RUN poetry config virtualenvs.create false
RUN poetry install --no-interaction
2020-08-06 17:59:12 +08:00
COPY . /opt
# CMD ["bash"]