mirror of
https://github.com/usetrmnl/byos_django.git
synced 2026-08-13 14:28:50 -07:00
22 lines
474 B
Docker
22 lines
474 B
Docker
FROM python:3.13
|
|
|
|
WORKDIR /src
|
|
|
|
# done first so we can cache dependencies between code changes
|
|
COPY Pipfile Pipfile.lock ./
|
|
RUN pip install -U pipenv
|
|
RUN pipenv install --system
|
|
|
|
RUN apt-get update && apt-get install -y nginx && apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY etc/nginx.conf /etc/nginx/sites-available/default
|
|
|
|
COPY . .
|
|
|
|
RUN python manage.py collectstatic --noinput
|
|
|
|
EXPOSE 8000
|
|
|
|
# Command to run
|
|
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|