Skip to content

Instantly share code, notes, and snippets.

@mattions
Last active December 5, 2016 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattions/3eabfc64911a5d1dca1317c184c919d4 to your computer and use it in GitHub Desktop.
Save mattions/3eabfc64911a5d1dca1317c184c919d4 to your computer and use it in GitHub Desktop.
# 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