forked from kmikkel/elasticsearch-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (21 loc) · 867 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
FROM python:2.7
ENV http_proxy http://www-proxy.statoil.no:80/
ENV https_proxy http://www-proxy.statoil.no:80/
RUN apt-get update && apt-get -y install netcat
# We use /code as working directory
WORKDIR /code
# Adding requirements.txt first before anything else. If there has not been any
# changes to requirements.txt since last build, Docker will use the cached
# version instead of running pip install again.
ADD ./requirements.txt /code/requirements.txt
RUN pip install --requirement requirements.txt
# Finally, add the rest of the code
ADD . /code
# The port where our API application is listening.
EXPOSE 80
# We set our own entrypoint, allowing us to verify database availability before
# the application is started.
ENTRYPOINT ["./docker-entrypoint.sh"]
# Start the API by default if no other command is given when running the
# container
CMD ["api"]