2
0
Fork 0
shiftregister/Dockerfile

23 lines
421 B
Docker
Raw Normal View History

2022-04-13 10:14:13 +02:00
FROM python:3.10-alpine3.15
2022-04-27 18:49:23 +02:00
RUN apk add --no-cache git
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"]