2
0
Fork 0
shiftregister/Dockerfile

21 lines
393 B
Docker
Raw Normal View History

FROM python:3.12-alpine3.19
2022-04-27 18:49:23 +02:00
2022-04-26 17:28:53 +02:00
RUN adduser -h /opt/shiftregister -D shiftregister
USER shiftregister
2022-04-13 10:14:13 +02:00
WORKDIR /opt/shiftregister
2022-04-26 17:28:53 +02:00
ENV PATH="$PATH:/opt/shiftregister/.local/bin"
2022-04-13 10:14:13 +02:00
RUN pip install --no-cache-dir gunicorn
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p static storage
2022-04-13 10:14:13 +02:00
EXPOSE 8000
2022-04-18 22:48:36 +02:00
ENTRYPOINT ["/opt/shiftregister/entrypoint.sh"]