You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
421 B
Docker

3 years ago
FROM python:3.10-alpine3.15
RUN apk add --no-cache git
RUN adduser -h /opt/shiftregister -D shiftregister
USER shiftregister
3 years ago
WORKDIR /opt/shiftregister
ENV PATH="$PATH:/opt/shiftregister/.local/bin"
3 years ago
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
3 years ago
EXPOSE 8000
ENTRYPOINT ["/opt/shiftregister/entrypoint.sh"]