Skip to content

Instantly share code, notes, and snippets.

@willemarcel
Created April 18, 2022 13:30
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 willemarcel/038e60287d8949a9c9213435f1fbc72e to your computer and use it in GitHub Desktop.
Save willemarcel/038e60287d8949a9c9213435f1fbc72e to your computer and use it in GitHub Desktop.
TM-Dockerfile
FROM ubuntu:latest
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -qq -y
RUN apt-get install -y curl wget python3 python3-dev python3-pip git libgeos-dev libcurl4-gnutls-dev librtmp-dev python3-gdal libyaml-dev locales nginx supervisor postgresql-client libpq-dev python3-pyproj
RUN apt-get install -y libproj-dev binutils
WORKDIR /project
COPY requirements.txt ./
RUN pip3 install --upgrade pip setuptools wheel
RUN pip3 install -r requirements.txt
COPY . .
CMD ["python3", "manage.py", "runserver", "--host=0.0.0.0"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment