-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (29 loc) · 906 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
# ---------------------------------------------------------------
# Dockerfile for exsimo
# ---------------------------------------------------------------
# Build image from `Dockerfile`
# docker build -t matthiaskoenig/exsimo:${EXSIMO_VERSION} .
#
# Images are build automatically on dockerhub after merging in
# master.
#
# The image is pushed to dockerhub
# docker login
# docker push matthiaskoenig/exsimo:${EXSIMO_VERSION}
# ---------------------------------------------------------------
FROM python:3.6
ENV PYTHONUNBUFFERED 1
# Allows docker to cache installed dependencies between builds
RUN pip install pip setuptools --upgrade
COPY ./requirements.txt requirements.txt
RUN pip install -r requirements.txt
# Adds application code to the image
COPY . /code
WORKDIR /code
# install pkexsimo
RUN pip install -e .
# run all tests
RUN pytest
# execute workflow
RUN execute
CMD ["/bin/bash"]