Spaces:
Runtime error
Runtime error
Commit
·
92cb557
1
Parent(s):
3fb1131
Update Dockerfile
Browse files- Dockerfile +14 -12
Dockerfile
CHANGED
@@ -1,18 +1,20 @@
|
|
1 |
-
|
|
|
2 |
|
3 |
-
|
|
|
4 |
|
5 |
-
|
|
|
6 |
|
7 |
-
|
|
|
8 |
|
9 |
-
|
|
|
10 |
|
11 |
-
|
|
|
12 |
|
13 |
-
#
|
14 |
-
|
15 |
-
#RUN useradd -m -u 1000 user
|
16 |
-
#RUN pip install --no-cache-dir pip==22.3.1 && pip install --no-cache-dir datasets "huggingface-hub>=0.12.1" "protobuf<4" "click<8.1" "pydantic~=1.0" "uvicorn>=0.14.0"
|
17 |
-
#RUN --mount=target=pre-requirements.txt,source=pre-requirements.txt pip install --no-cache-dir -r pre-requirements.txt
|
18 |
-
#RUN --mount=target=requirements.txt,source=requirements.txt pip install --no-cache-dir -r requirements.txt
|
|
|
1 |
+
# Use an official Python runtime as a parent image
|
2 |
+
FROM python:3.8
|
3 |
|
4 |
+
# Set the working directory to /app
|
5 |
+
WORKDIR /app
|
6 |
|
7 |
+
# Copy the current directory contents into the container at /app
|
8 |
+
COPY . /app
|
9 |
|
10 |
+
# Install any needed packages specified in requirements.txt
|
11 |
+
RUN pip install gradio huggingface_hub transformers geti_sdk
|
12 |
|
13 |
+
# Make port 7860 available to the world outside this container
|
14 |
+
EXPOSE 7860
|
15 |
|
16 |
+
# Define environment variable
|
17 |
+
ENV GRADIO_SERVER_NAME="my_gradio_app"
|
18 |
|
19 |
+
# Run app.py when the container launches
|
20 |
+
CMD ["python", "app.py"]
|
|
|
|
|
|
|
|