Refactored... still works

This commit is contained in:
bj
2020-10-22 20:11:57 +02:00
parent 5e7cb3a922
commit 888ac26781
9 changed files with 10 additions and 107 deletions
+3 -6
View File
@@ -1,16 +1,13 @@
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
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" ]