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

18 lines
292 B

FROM python:alpine
WORKDIR /app
COPY . .
RUN apk add --no-cache gcc libc-dev libxml2-dev libxslt-dev && \
rm -rf /var/cache/apk/*
RUN pip install --no-cache-dir --requirement requirements.txt
RUN addgroup -g 9999 lilia
EXPOSE 5000
USER nobody:lilia
ENTRYPOINT ["python", "app.py"]