circulartext commited on
Commit
c0e77ac
·
1 Parent(s): 3658992

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -5
Dockerfile CHANGED
@@ -1,11 +1,21 @@
1
  # Use the base Docker image
2
  FROM circulartextapp/lastread
3
 
4
- # Set the working directory to /app (if needed)
5
- WORKDIR /app
6
 
7
- # Copy the current directory contents into the container at /app
8
- COPY . /app
 
 
 
 
 
 
 
 
 
 
9
 
10
  # Example CMD (modify as needed)
11
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  # Use the base Docker image
2
  FROM circulartextapp/lastread
3
 
4
+ # Set up a new user named "user" with user ID 1000
5
+ RUN useradd -m -u 1000 user
6
 
7
+ # Switch to the "user" user
8
+ USER user
9
+
10
+ # Set home to the user's home directory
11
+ ENV HOME=/home/user \
12
+ PATH=/home/user/.local/bin:$PATH
13
+
14
+ # Set the working directory to the user's home directory
15
+ WORKDIR $HOME/app
16
+
17
+ # Copy the current directory contents into the container at $HOME/app
18
+ COPY . $HOME/app
19
 
20
  # Example CMD (modify as needed)
21
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]