Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 21 additions & 23 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,35 +1,33 @@
FROM ubuntu:20.04
RUN apt-get update && \
apt-get -y install sudo
RUN apt-get install -y software-properties-common
RUN apt-get update
RUN apt-get update && apt-get install -y \
software-properties-common \
sudo \
unzip \
wget

RUN apt-get install wget unzip
RUN wget https://jataware-world-modelers.s3.amazonaws.com/gadm/gadm36_2.feather.zip
RUN wget https://jataware-world-modelers.s3.amazonaws.com/gadm/gadm36_3.feather.zip
RUN mkdir ~/mixmasta_data && \
RUN wget https://jataware-world-modelers.s3.amazonaws.com/gadm/gadm36_2.feather.zip && \
wget https://jataware-world-modelers.s3.amazonaws.com/gadm/gadm36_3.feather.zip && \
mkdir ~/mixmasta_data && \
unzip gadm36_2.feather.zip -d ~/mixmasta_data/ && \
unzip gadm36_3.feather.zip -d ~/mixmasta_data/ && \
rm gadm36_?.feather.zip

RUN add-apt-repository ppa:ubuntugis/ubuntugis-unstable
RUN apt-get update
RUN apt-get install -y python3.8-dev
RUN apt-get install -y gdal-bin
RUN apt-get install -y libgdal-dev
RUN apt-get install -y python3-pip
RUN apt install -y python3-rtree
RUN add-apt-repository ppa:ubuntugis/ubuntugis-unstable && apt-get update && \
apt-get install -y \
gdal-bin \
libgdal-dev \
python3-pip \
python3-rtree \
python3.8-dev && \
apt-get -y autoremove && apt-get clean autoclean

ENV CPLUS_INCLUDE_PATH=/usr/include/gdal
ENV C_INCLUDE_PATH=/usr/include/gdal

RUN pip3 install numpy==1.22
COPY . /mixmasta

WORKDIR /
COPY requirements.txt /requirements.txt
RUN pip3 install -r requirements.txt
COPY . /
RUN python3 setup.py install
#RUN mixmasta download
WORKDIR /mixmasta

ENTRYPOINT ["mixmasta"]
RUN pip3 install numpy==1.22 && \
pip3 install -r requirements.txt && \
python3 setup.py install
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "3.9"
services:
mixmasta:
container_name: mixmasta-container
command: tail -f /dev/null #Keeps container up on start, no other function
build: ./
volumes:
- $PWD:/mixmasta
Loading