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.
21 lines
390 B
21 lines
390 B
FROM python:3.6.8-alpine3.9
|
|
|
|
LABEL MAINTAINER="FirstName LastName <example@domain.com>"
|
|
|
|
ENV GROUP_ID=1000 \
|
|
USER_ID=1000
|
|
|
|
WORKDIR /var/www/
|
|
|
|
ADD . /var/www/
|
|
RUN pip install -r requirements.txt
|
|
RUN pip install gunicorn
|
|
|
|
RUN addgroup -g $GROUP_ID www
|
|
RUN adduser -D -u $USER_ID -G www www -s /bin/sh
|
|
|
|
USER www
|
|
|
|
EXPOSE 5000
|
|
|
|
CMD [ "gunicorn", "-w", "4", "--bind", "0.0.0.0:5000", "wsgi"]
|
|
|