Skip to content

Instantly share code, notes, and snippets.

@mujahidk
Created April 17, 2016 18:59
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 mujahidk/64f94446fd6afe3353bb3038e350443d to your computer and use it in GitHub Desktop.
Save mujahidk/64f94446fd6afe3353bb3038e350443d to your computer and use it in GitHub Desktop.
Ubuntu based Docker container with Python Flask, nodejs and webpack.
# Use the latest Ubuntu
FROM ubuntu:latest
# Author
MAINTAINER Mujahid Khaleel <mujahidkhaleel@gmail.com>
# Docker version
LABEL version="1.0"
LABEL description="Python, Flask, nodejs and webpack"
# Update the apt-get list
RUN apt-get update -y
# Install python dependencies
RUN apt-get install -y python-pip python-dev build-essential
# Install curl for installing nodejs
RUN apt-get install -y curl
# Install nodejs
RUN curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
RUN apt-get install -y nodejs
# Install app requirements using pip
RUN pip install Flask
# Install global webpack
RUN npm install webpack -g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment