circulartext commited on
Commit
7e12b88
1 Parent(s): 222793b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -19
Dockerfile CHANGED
@@ -1,22 +1,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 all contents in the current directory to the /app directory in the container
8
- COPY . /app
9
-
10
- # Copy the entrypoint script
11
- COPY entrypoint.sh /usr/local/bin/entrypoint.sh
12
- RUN chmod +x /usr/local/bin/entrypoint.sh
13
-
14
- # Expose the port that your FastAPI application is running on
15
- EXPOSE 80
16
-
17
- # Set the entrypoint script
18
- ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
19
-
20
- # Command to start your FastAPI application
21
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80", "--reload"]
22
 
 
 
 
 
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)