21 lines
393 B
Docker
21 lines
393 B
Docker
FROM python:3.10-alpine3.15
|
|
|
|
RUN adduser -h /opt/shiftregister -D shiftregister
|
|
|
|
USER shiftregister
|
|
WORKDIR /opt/shiftregister
|
|
|
|
ENV PATH="$PATH:/opt/shiftregister/.local/bin"
|
|
|
|
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
|
|
|
|
EXPOSE 8000
|
|
|
|
ENTRYPOINT ["/opt/shiftregister/entrypoint.sh"]
|