Skip to content

Commit c6364d5

Browse files
Merge pull request carlos-jenkins#11 from mfin/replace-dockerfile
replace Fedora with python-alpine in Dockerfile
2 parents f9e8278 + 6e5bdec commit c6364d5

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

Dockerfile

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
FROM fedora:latest
2-
MAINTAINER "Laurent Rineau" <laurent.rineau@cgal.org>
1+
FROM python:2.7-alpine
2+
MAINTAINER "Matjaž Finžgar" <matjaz@finzgar.net>
33

4-
RUN yum -y update
5-
RUN yum -y install python-pip && yum clean all
4+
WORKDIR /app
65

7-
ADD LICENSE requirements.txt webhooks.py config.json hooks /src/
8-
9-
RUN cd /src; pip install -r requirements.txt
6+
COPY . /app
7+
RUN pip install -r requirements.txt
108

119
EXPOSE 5000
12-
13-
WORKDIR /src
14-
CMD ["python", "/src/webhooks.py"]
10+
CMD ["python", "webhooks.py"]

0 commit comments

Comments
 (0)