Files
shoppy/Dockerfile
T
2024-05-15 17:37:35 +02:00

23 lines
429 B
Docker

FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
COPY requirements.txt /code
RUN apt-get update && \
apt-get install -y git nginx gettext vim && \
pip install -r requirements.txt && \
apt-get autoremove -y
COPY . /code
COPY nginx/nginx.conf /etc/nginx/sites-enabled/default
RUN python manage.py collectstatic --noinput
CMD [ "sh", "./scripts/run.sh" ]