-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathDockerfile
37 lines (22 loc) · 870 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
33
34
35
36
37
FROM python:2.7-slim
WORKDIR /app
ENV PYTHONPATH $PYTHONPATH:/app
COPY requirements.txt /app/requirements.txt
RUN buildDeps='gcc libffi-dev libxml2-dev libxslt-dev' \
&& apt-get update && apt-get install -y $buildDeps \
&& pip install --cache-dir=/tmp/pipcache --upgrade setuptools pip \
&& cat /app/requirements.txt | xargs -n 1 -L 1 pip install --cache-dir=/tmp/pipcache \
&& rm -r /tmp/pipcache \
&& apt-get purge -y --auto-remove $buildDeps \
&& rm -rf /var/lib/apt/lists/*
COPY ./bin /app/bin
COPY ./config /app/config.sample
COPY ./hyphe_backend /app/hyphe_backend
COPY ./docker-entrypoint.py /app/docker-entrypoint.py
RUN mkdir /app/config
RUN chmod +x /app/docker-entrypoint.py
RUN chmod +x /app/hyphe_backend/core.tac
EXPOSE 6978
VOLUME ["/app/config"]
VOLUME ["/app/traph-data"]
ENTRYPOINT ["/app/docker-entrypoint.py"]