Fix docker install

This commit is contained in:
BenAAndrew
2021-10-08 13:33:30 +01:00
parent a5a11d147a
commit 23045b1663
2 changed files with 13 additions and 9 deletions

View File

@@ -1,16 +1,20 @@
FROM pytorch/pytorch:1.7.0-cuda11.0-cudnn8-runtime
FROM pytorch/pytorch:1.9.0-cuda11.1-cudnn8-runtime
# Lib dependencies
RUN apt-get update
RUN apt-get install -y ffmpeg build-essential
# Setup
RUN apt-get update
WORKDIR /app
COPY . /app
# FFMPEG
RUN apt-get install -y ffmpeg
COPY application/ /app/application
COPY dataset/ /app/dataset
COPY training/ /app/training
COPY synthesis/ /app/synthesis
COPY main.py /app
COPY requirements.txt /app
# Python dependencies
RUN pip install -r requirements.txt
# Start app
ENTRYPOINT [ "python3" ]
CMD [ "main.py" ]
CMD [ "python3", "main.py" ]

View File

@@ -50,4 +50,4 @@ if __name__ == "__main__":
cleanup_mei()
check_ffmpeg()
webbrowser.open_new_tab("http://localhost:5000")
socketio.run(app)
socketio.run(app, host='0.0.0.0')