pinsmart_prototype / Dockerfile
reynaldyh
chore: requirements.txt
0a4ba67
Raw
History Blame Contribute Delete
721 Bytes
FROM python:3.10-slim
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
POETRY_HOME="/opt/poetry" \
POETRY_VIRTUALENVS_IN_PROJECT=true \
POETRY_NO_INTERACTION=1 \
VENV_PATH=".venv"
ENV PATH=${POETRY_HOME}/bin:$PATH
ENV PATH=${VENV_PATH}/bin:$PATH
COPY ./ ./
RUN apt-get update && apt-get install --no-install-recommends -y git curl build-essential && \
curl -sSL https://install.python-poetry.org | python - && \
chmod a+x ${POETRY_HOME}/bin/poetry
RUN chmod a+x ${POETRY_HOME}/bin/poetry && \
poetry install --without dev -vv
EXPOSE 7860
CMD ["poetry", "run","python", "app.py"]