15 lines
352 B
Docker
15 lines
352 B
Docker
FROM python:3
|
|
|
|
WORKDIR /usr/src
|
|
RUN git clone https://git.rudefox.io/bj/torch-subscriber-simple.git
|
|
|
|
WORKDIR /usr/src/torch-subscriber-simple
|
|
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" ]
|