Skip to content

Instantly share code, notes, and snippets.

@mattions mattions/dockerfile
Last active Dec 5, 2016

Embed
What would you like to do?
# blackkiwi - production app
FROM mattions/webber:1.0
MAINTAINER mattions "mattions@gmail.com"
ENV DEBIAN_FRONTEND noninteractive
ENV PYTHONUNBUFFERED 1
RUN apt-get update && apt-get -qy install\
python3 \
python3-dev \
python3-virtualenv \
python3-pip \
git \
nodejs \
npm \
wget \
software-properties-common \
build-essential \
python3-numpy \
python3-scipy \
libatlas-dev \
ruby-sass \
libpq-dev
# Update to latest pip.
RUN pip3 install -U pip
# Copying the requirements here, so we can take advantage of docker caching
ADD requirements.txt requirements.txt
# Install prod requirements
RUN pip3 install -qr requirements.txt
RUN npm install -g yuglify
COPY . /webapp
WORKDIR /webapp
# Move into blackkiwi directory
WORKDIR blackkiwi
# Install the frotn-end library
RUN bower install --allow-root
ENV DJANGO_SETTINGS_MODULE=blackkiwi.settings.prod
# Go back up one
WORKDIR /webapp
CMD ["./deploy/deploy_script.sh"]
mattions@carrier:~$ dokku config blackkiwi-staging | grep DOKKU
DOKKU_APP_RESTORE: 1
DOKKU_APP_TYPE: dockerfile
DOKKU_DOCKERFILE_CMD: CMD ["./deploy/deploy_script.sh"]
DOKKU_DOCKERFILE_PORTS: 5000
DOKKU_PROXY_PORT_MAP: http:5000:5000:5000:5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.