Files
shoppy/Dockerfile
T

25 lines
477 B
Docker

FROM python:3.11-alpine
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
COPY requirements.txt /code
RUN apk update && \
apk add gcc vim postgresql-client openrc nginx && \
apk del gcc && \
openrc && \
touch /run/openrc/softlevel && \
pip install -r requirements.txt
COPY . /code
COPY nginx/nginx.conf /etc/nginx/sites-enabled/default
RUN python manage.py collectstatic --noinput
CMD [ "sh", "./scripts/run.sh" ]