Spaces:
Running
Running
Commit
·
797ba9c
1
Parent(s):
16b3c81
Update Dockerfile
Browse files- Dockerfile +12 -4
Dockerfile
CHANGED
@@ -1,7 +1,15 @@
|
|
|
|
1 |
FROM circulartextapp/readspaceout
|
2 |
|
3 |
-
# Set the
|
4 |
-
|
5 |
|
6 |
-
#
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use your previously built image as the base
|
2 |
FROM circulartextapp/readspaceout
|
3 |
|
4 |
+
# Set the working directory
|
5 |
+
WORKDIR /app
|
6 |
|
7 |
+
# Copy the model files and other necessary components
|
8 |
+
COPY ./your_model_directory /app/your_model_directory
|
9 |
+
COPY ./your_code_directory /app/your_code_directory
|
10 |
+
|
11 |
+
# Expose the port that your FastAPI application is running on
|
12 |
+
EXPOSE 80
|
13 |
+
|
14 |
+
# Command to start your FastAPI application
|
15 |
+
CMD ["uvicorn", "your_code_directory.app:app", "--host", "0.0.0.0", "--port", "80", "--reload"]
|