Skip to content

Instantly share code, notes, and snippets.

@phpdude phpdude/Dockerfile Secret
Created Oct 10, 2016

Embed
What would you like to do?
Dockerfile test
FROM debian:stable
ENV PYTHONUNBUFFERED 1
RUN apt-get update && apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_5.x | bash -
RUN apt-get install -y nodejs nginx-extras python-pip uwsgi-plugin-python git libpq-dev python-dev libxml2-dev libxslt1-dev vim graphviz
RUN apt-get install -y libjpeg-dev
RUN mkdir /app/
WORKDIR /app/
ADD libs libs
ADD project/requirements.txt /app/requirements.txt
ADD project/assets/package.json /app/project/assets/package.json
RUN pip install -U -r /app/requirements.txt
RUN cd /app/project/assets/ && npm install
RUN mkdir /app/logs /app/tmp/
ADD . /app/
ENV DOCKER 1
RUN cd /app/project/assets/ && npm run build
RUN python manage.py collectstatic --noinput -v0
ADD docker/production/nginx/nginx.conf /etc/nginx/sites-enabled/project
ADD docker/production/nginx/conf.d/* /etc/nginx/conf.d/
EXPOSE 80
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.