Switch branches/tags
Nothing to show
Find file Copy path
b1da8b6 Apr 26, 2018
@edmorley @keunwoo
26 lines (18 sloc) 569 Bytes
#Grab the latest alpine image
FROM alpine:latest
# Install python and pip
RUN apk add --no-cache --update python3 py3-pip bash
ADD ./webapp/requirements.txt /tmp/requirements.txt
# Install dependencies
RUN pip3 install --no-cache-dir -q -r /tmp/requirements.txt
# Add our code
ADD ./webapp /opt/webapp/
WORKDIR /opt/webapp
# Expose is NOT supported by Heroku
# EXPOSE 5000
# Run the image as a non-root user
RUN adduser -D myuser
USER myuser
# Run the app. CMD is required to run on Heroku
# $PORT is set by Heroku
CMD gunicorn --bind$PORT wsgi