Spaces:
Runtime error
Runtime error
Commit
·
684ee1d
1
Parent(s):
7664936
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -6,13 +6,14 @@ FROM arslan2k12/ttyd_base
|
|
| 6 |
WORKDIR /app/ttyd
|
| 7 |
|
| 8 |
# Copy the current directory contents into the container at /usr/src/app
|
| 9 |
-
COPY . /app/ttyd
|
|
|
|
| 10 |
|
| 11 |
# to make gradio app accessible to local network (default 127.0.0.1 is only accissible within the container)
|
| 12 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
| 13 |
|
| 14 |
# Install any needed packages specified in requirements.txt
|
| 15 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 16 |
|
| 17 |
# Use ENTRYPOINT to allow passing user arguments
|
| 18 |
ENTRYPOINT ["python", "app.py"]
|
|
|
|
| 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"]
|