blob: c8356204412668a12928d545b986d0adeb2050e5 [file] [log] [blame]
Zsolt Haraszti7003f2b2016-09-08 15:56:14 -07001FROM alpine:3.1
2
3# Update to have latest images
4RUN apk add --update python py-pip
5
Zsolt Haraszti593c49a2016-09-08 17:04:11 -07006COPY requirements.txt /tmp/requirements.txt
7
Zsolt Haraszti7003f2b2016-09-08 15:56:14 -07008# Install app dependencies
9RUN apk add build-base gcc abuild binutils python-dev && \
Zsolt Haraszti593c49a2016-09-08 17:04:11 -070010 pip install -r /tmp/requirements.txt && \
Zsolt Haraszti3263da42016-09-08 16:31:04 -070011 apk del --purge build-base gcc abuild binutils python-dev
Zsolt Haraszti7003f2b2016-09-08 15:56:14 -070012
13# Bundle app source
14COPY voltha /voltha
15
16# Exposing process and default entry point
17# EXPOSE 8000
18CMD ["python", "voltha/voltha.py"]