-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
24 lines (18 loc) · 1007 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM debian:buster-slim
LABEL maintainer="Renato Gomes <renatogomessilverio@gmail.com>"
ENV URL_TO_APPLICATION_GITHUB="https://github.com/lapig-ufg/mdc.git"
ENV BRANCH="master"
WORKDIR /APP/mdc
COPY ./requirements.txt /tmp
RUN apt-get update && apt-get install -y unzip python2 procps python-gdal python-pip gdal-bin net-tools vim redis-server git && \
pip install -U pip setuptools && \
mkdir -p /APP && cd /APP && git clone -b ${BRANCH} ${URL_TO_APPLICATION_GITHUB}
ADD ./docker-files/redis.conf /etc/redis
ADD ./docker-files/start.sh /APP
RUN chown redis:redis /etc/redis/redis.conf && \
pip install -r /tmp/requirements.txt && \
chmod +x /APP/start.sh && \
cd /APP/mdc && mv MRT.zip /tmp && cd /tmp && unzip MRT.zip && \
cd MRT/ && mv MRT/ /APP/mdc && mkdir -p /APP/sits-workdir/ && \
rm -rf /tmp/* && rm -rf /var/lib/apt/lists/*
CMD [ "/bin/bash", "-c", "/APP/start.sh; tail -f /dev/null"]