Skip to content

Instantly share code, notes, and snippets.

@thatbudakguy
Created January 6, 2020 18:44
Show Gist options
  • Save thatbudakguy/42645db10d10be12412a44b8a218f90e to your computer and use it in GitHub Desktop.
Save thatbudakguy/42645db10d10be12412a44b8a218f90e to your computer and use it in GitHub Desktop.
django docker devenv
FROM node:8
RUN mkdir /code
WORKDIR /code
COPY package.json /code/
RUN npm -g config set user root
RUN npm install -g node-sass postcss-cli autoprefixer
RUN npm install
FROM python:3.5
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
COPY --from=0 /code .
COPY requirements/prod.txt .
RUN pip install -r prod.txt
COPY . .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment