Refactored... still works
This commit is contained in:
@@ -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" ]
|
||||
|
||||
Reference in New Issue
Block a user