Dockerfile 349 Bytes
Newer Older
Bogdan Bodnar's avatar
Bogdan Bodnar committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
FROM alpine:3.5

ADD . /proxy

RUN apk add --no-cache \
	gcc \
	musl-dev \
	python3-dev \
	py3-pip \
	py3-cffi \
	py3-cryptography \
	ca-certificates \
	sshpass \
	openssh
RUN pip3 install --upgrade pip
16 17 18

RUN python3 -m pip install /proxy
RUN rm -rf /proxy
Bogdan Bodnar's avatar
Bogdan Bodnar committed
19 20 21 22

EXPOSE 2222

CMD python3 -m haas_proxy --nodaemon haas_proxy --device-token ${DEVICE_TOKEN}