torch-subscriber-docker/subscriber/Dockerfile
2020-10-20 18:58:42 +02:00

18 lines
389 B
Docker

FROM python:3
#WORKDIR /usr/src
#RUN git clone https://git.rudefox.io/bj/torch-subscriber-simple.git
ADD torch-subscriber-simple /usr/src/torch-sub
WORKDIR /usr/src/torch-sub
RUN pip3 install --no-cache-dir -r requirements.txt && \
python3 setup.py install
WORKDIR /data
EXPOSE 8080
VOLUME [ "/etc/torch", "/data" ]
ENTRYPOINT [ "torch-sub" ]
CMD [ "--config-dir", "/etc/torch" ]