circulartext commited on
Commit
797ba9c
·
1 Parent(s): 16b3c81

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -4
Dockerfile CHANGED
@@ -1,7 +1,15 @@
 
1
  FROM circulartextapp/readspaceout
2
 
3
- # Set the user ID to a unique value for each user
4
- ENV USER_ID=$(id -u)
5
 
6
- # Set the user group to a unique value for each user
7
- ENV USER_GROUP=$(id -g)
 
 
 
 
 
 
 
 
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"]