This commit is contained in:
2024-11-14 02:06:21 +08:00
commit 29ce03dbc5
24 changed files with 1042 additions and 0 deletions

25
Dockerfile Normal file
View File

@ -0,0 +1,25 @@
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
RUN apt-get update && \
apt-get install -y build-essential curl libpq-dev
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH="/root/.local/bin:$PATH"
WORKDIR /app
COPY pyproject.toml poetry.lock* /app/
RUN poetry install --no-root
COPY . /app/
RUN poetry run python manage.py collectstatic --noinput
ENTRYPOINT ["/app/entrypoint.sh"]
EXPOSE 8000