diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 31 |
1 files changed, 18 insertions, 13 deletions
@@ -1,25 +1,30 @@ -FROM python:3.14.3-slim +FROM python:3.14-slim -RUN apt-get update && apt-get install -y \ - curl \ - build-essential \ - && rm -rf /var/lib/apt/lists/* +WORKDIR /app -ENV POETRY_VERSION=2.3.2 -RUN curl -sSL https://install.python-poetry.org | python3 - +ENV PYTHONUNBUFFERED=1 -ENV PATH="/root/.local/bin:$PATH" +ENV POETRY_VERSION=2.3.2 \ + POETRY_NO_INTERACTION=1 \ + POETRY_VIRTUALENVS_CREATE=false + +RUN apt-get update \ + && apt-get install -y curl \ + && rm -rf /var/lib/apt/lists/* -WORKDIR /artberry_backend +RUN curl -sSL https://install.python-poetry.org | python3 + +ENV PATH="/root/.local/bin:$PATH" -COPY pyproject.toml poetry.lock* /artberry_backend/ +# install dependencies (docker cache layer) +COPY pyproject.toml poetry.lock* ./ RUN poetry install --no-root --only main -COPY . /artberry_backend +COPY . . -RUN chmod +x /artberry_backend/start.sh +RUN chmod +x start.sh EXPOSE 8000 -CMD ["/artberry_backend/start.sh"] +CMD ["./start.sh"] |
