Dockerfile 733 Bytes
Newer Older
Renfred Harper's avatar
Renfred Harper committed
1
############################################################
David Haynes's avatar
David Haynes committed
2
# What's Open API v2
Renfred Harper's avatar
Renfred Harper committed
3 4 5
############################################################

# Set the base image to Ubuntu
6
FROM python:3.7
7
ENV PYTHONUNBUFFERED 1
Renfred Harper's avatar
Renfred Harper committed
8

9 10 11 12 13 14 15 16 17 18
# Update the sources list and install all packages
# See: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run
RUN apt-get update && apt-get install -y \
    netcat \
    libproj-dev \
    proj-data \
    proj-bin \
    binutils \ 
    gdal-bin \ 
    && rm -rf /var/lib/apt/lists/*
19

David Haynes's avatar
David Haynes committed
20 21 22 23 24 25
# Copy over all project files into /whats_open
RUN mkdir /whats-open/
WORKDIR /whats-open/
ADD . /whats-open/

# Pip install all required dependecies
26 27
RUN pip install pipenv
RUN pipenv install --system --deploy