2022-04-13 10:14:13 +02:00
|
|
|
FROM python:3.10-alpine3.15
|
|
|
|
|
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 . .
|
2022-04-26 17:36:08 +02:00
|
|
|
RUN mkdir -p storage
|
2022-04-13 10:14:13 +02:00
|
|
|
|
|
|
|
EXPOSE 8000
|
|
|
|
|
2022-04-18 22:48:36 +02:00
|
|
|
ENTRYPOINT ["/opt/shiftregister/entrypoint.sh"]
|