FROM alpine:latest
MAINTAINER Oscar Ortiz <[email protected]>
ENV APP_PORT=8081
ENV GUNICORN_MODULE='main'
ENV GUNICORN_CALLABLE='app'
ENV GUNICORN_USER='user_gun'
ENV APP_PATH='/app'
RUN apk add --no-cache python3 \
&& python3 -m ensurepip \
&& pip3 install --upgrade pip gunicorn \
&& adduser -D -h $APP_PATH $GUNICORN_USER
COPY ./ $APP_PATH
RUN pip3 install -r $APP_PATH/requirements.txt --upgrade
EXPOSE $APP_PORT
USER $GUNICORN_USER
WORKDIR $APP_PATH
ENTRYPOINT $APP_PATH/entrypoint.sh
Content type
Image
Digest
Size
26.1 MB
Last updated
over 7 years ago
docker pull poxstone/k8_app_py:v0.0.1c