12 lines
450 B
Plaintext
12 lines
450 B
Plaintext
|
|
FROM alpine:latest
|
||
|
|
MAINTAINER Mattéo Delabre spam@delab.re
|
||
|
|
# RUN sysctl net.ipv4.ip_unprivileged_port_start=0
|
||
|
|
# RUN adduser --system feedleware
|
||
|
|
WORKDIR /root
|
||
|
|
COPY requirements.txt .
|
||
|
|
COPY feedleware feedleware
|
||
|
|
RUN apk add --update --no-cache py3-pip
|
||
|
|
RUN pip install --break-system-packages --root-user-action=ignore --no-cache --upgrade -r requirements.txt
|
||
|
|
# USER feedleware
|
||
|
|
CMD python -m gunicorn -b 0.0.0.0:80 --threads 2 'feedleware:create_app()'
|