Sunday, February 4, 2018

Dockerfile

#Create a Dockerfile in the project directory. Following is a sample Dockerfile to install ubuntu with postgres and apache

FROM ubuntu:rolling
  RUN apt update 
  RUN apt install -y vim python3-pip apache2 libapache2-mod-wsgi-py3 postgresql postgresql-contrib postgresql-server-dev-9.6 openssh-server sudo curl iproute
  RUN pip3 install --upgrade pip
  RUN pip3 install Django django-mathfilters lxml psycopg2-binary requests
  ADD install.sh /
  ENTRYPOINT ["/bin/bash", "-x", "install.sh", "arg1"]

No comments:

Post a Comment