torch-subscriber-docker/subscriber/Dockerfile

15 lines
352 B
Docker
Raw Normal View History

2020-10-20 16:58:42 +00:00
FROM python:3
2020-10-22 18:11:57 +00:00
WORKDIR /usr/src
RUN git clone https://git.rudefox.io/bj/torch-subscriber-simple.git
2020-10-20 16:58:42 +00:00
2020-10-22 18:11:57 +00:00
WORKDIR /usr/src/torch-subscriber-simple
2020-10-20 16:58:42 +00:00
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" ]