Skip to content

Instantly share code, notes, and snippets.

@subhajeet2107
Last active May 25, 2021 17:56
Show Gist options
  • Save subhajeet2107/86cd64f40ebc7ab7a244a157c167fddd to your computer and use it in GitHub Desktop.
Save subhajeet2107/86cd64f40ebc7ab7a244a157c167fddd to your computer and use it in GitHub Desktop.
Subdev Docker Image: this is my own docker image for development
#docker build -t subdev .
#docker run -p 8000:8000 -d --name subdev -v $(pwd):/home/ubuntu/main -it subdev
#docker exec -it subdev bash
#docker ps -a
#docker start <container_id>
#ifconfig | grep 'inet 192'| awk '{ print $2}'
FROM ubuntu:18.04
RUN apt-get update
ENV LANG en_IN.utf8
ENV LANGUAGE en_US:en
ENV LC_ALL en_IN.utf8
RUN apt-get install -y locales software-properties-common vim
RUN apt-get install -y python3.6
RUN apt-get install -y build-essential python3-pip
RUN apt-get install -y curl git
RUN apt-get install -y mysql-client
RUN apt-get install -y libxml2-dev libxslt1-dev
#Set locale
RUN locale-gen en_IN.utf8
# update pip
RUN python3 -m pip install pip --upgrade
RUN apt-get install -y libmysqlclient-dev redis-server
RUN apt-get install -y libmagickwand-dev
RUN pip3 install mysqlclient gunicorn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment