blob: eb55b2f66d40113c35ff2adadd03cc07649e912f [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
Zsolt Harasztib09d88f2016-09-09 00:53:28 -07009RUN apk add build-base gcc abuild binutils python-dev libffi-dev openssl-dev && \
Zsolt Haraszti593c49a2016-09-08 17:04:11 -070010 pip install -r /tmp/requirements.txt && \
Zsolt Harasztib09d88f2016-09-09 00:53:28 -070011 apk del --purge build-base gcc abuild binutils python-dev libffi-dev openssl-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"]