graph2plan / Dockerfile
Zai
port change
39f9c02
raw
history blame
624 Bytes
# Use an official Python runtime as a parent image
FROM python:3.7
# Set the working directory to /app
WORKDIR /app
# Copy the contents of the Interface folder into the container at /app
COPY Interface /app
# Install any needed packages specified in requirements.txt
RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117 -U
RUN pip install django opencv-python scipy pandas shapely -U
# Expose the port the app runs on
EXPOSE 7860
# Define environment variable
ENV NAME g2p_app
# Run app.py when the container launches
CMD ["python", "manage.py", "runserver", "0.0.0.0:7860"]