forked from ioos/sensorml2iso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (22 loc) · 827 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
25
26
27
28
29
30
31
32
FROM python:3.5
MAINTAINER Luke Campbell <[email protected]>
# General dependencies:
RUN apt-get update && \
apt-get install -y --no-install-recommends libgeos-dev && \
apt-get install -y cron rsyslog && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /srv/app /srv/iso
WORKDIR /srv/app
COPY setup.py requirements.txt ./
RUN pip install --upgrade pip && pip install -r requirements.txt
COPY setup.py contrib/docker-entrypoint.sh ./
COPY sensorml2iso ./sensorml2iso
COPY contrib/init /etc/my_init.d
COPY contrib/bin/setuser /sbin/setuser
COPY contrib/config/config.json /etc/sensorml2iso/config.json
RUN touch /var/log/cron.log && \
pip install -e . && \
useradd --system --home-dir=/srv/app app && \
chown -R app:app /srv/app /srv/iso
VOLUME /srv/iso
ENTRYPOINT ["./docker-entrypoint.sh"]