Spaces:
Runtime error
Runtime error
dataroadmap
commited on
Commit
•
37be13c
1
Parent(s):
dfe0eb7
Update Dockerfile
Browse files- Dockerfile +19 -0
Dockerfile
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# Use an official Python runtime as a parent image
|
3 |
+
FROM arslan2k12/ttyd_base
|
4 |
+
|
5 |
+
# Set the working directory in the container
|
6 |
+
WORKDIR /app/ttyd
|
7 |
+
|
8 |
+
# Copy the current directory contents into the container at /usr/src/app
|
9 |
+
# COPY . /app/ttyd
|
10 |
+
COPY *.py /app/ttyd
|
11 |
+
|
12 |
+
# to make gradio app accessible to local network (default 127.0.0.1 is only accissible within the container)
|
13 |
+
ENV GRADIO_SERVER_NAME=0.0.0.0
|
14 |
+
|
15 |
+
# Install any needed packages specified in requirements.txt
|
16 |
+
# RUN pip install --no-cache-dir -r requirements.txt # already installed in base image
|
17 |
+
|
18 |
+
# Use ENTRYPOINT to allow passing user arguments
|
19 |
+
ENTRYPOINT ["python", "app.py"]
|