Skip to content

Instantly share code, notes, and snippets.

@analyticsindiamagazine
Created October 31, 2019 09:59
Show Gist options
  • Save analyticsindiamagazine/e989409b0c5314bfbe7535958663e0f6 to your computer and use it in GitHub Desktop.
Save analyticsindiamagazine/e989409b0c5314bfbe7535958663e0f6 to your computer and use it in GitHub Desktop.
dockerfile
#The base image - The container is built on top of this image --# reference: https://hub.docker.com/_/ubuntu/
FROM ubuntu:18.04
# Adds metadata to the image as a key value pair
LABEL version="1.0"
# Set environment variables
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
# Create empty directory to attach volume
RUN mkdir ~/Volume
# Install Ubuntu packages
RUN apt-get update && apt-get install -y \
wget \
bzip2 \
ca-certificates \
build-essential \
curl \
git-core \
htop \
pkg-config \
unzip \
unrar \
tree \
freetds-dev
# Clean up
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
#Installing Python and PIP
RUN apt-get update && apt-get install -y \
python3.6 \
python3-pip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment