25 lines
612 B
Docker
25 lines
612 B
Docker
FROM python:3.11
|
|
|
|
ARG BUILD_DEPS="curl"
|
|
RUN apt-get update && apt-get install -y $BUILD_DEPS
|
|
|
|
RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.5.1 POETRY_HOME=/root/poetry python3 -
|
|
ENV PATH="${PATH}:/root/poetry/bin"
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
COPY poetry.lock pyproject.toml /
|
|
RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi
|
|
|
|
RUN mkdir /backend_labs
|
|
|
|
WORKDIR /backend_labs
|
|
|
|
COPY . .
|
|
|
|
RUN chmod a+x docker/*.sh
|
|
|
|
#WORKDIR src
|
|
|
|
#CMD gunicorn main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind=0.0.0.0:8000 |