circulartext commited on
Commit
f9900a1
1 Parent(s): c0e77ac

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -10
Dockerfile CHANGED
@@ -4,18 +4,15 @@ FROM circulartextapp/lastread
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"]
 
 
4
  # Set up a new user named "user" with user ID 1000
5
  RUN useradd -m -u 1000 user
6
 
7
+ # Set the working directory to /app
8
+ WORKDIR /app
 
 
 
 
9
 
10
+ # Copy the current directory contents into the container at /app
11
+ COPY . /app
12
 
13
+ # Switch to the "user" user
14
+ USER user
15
 
16
  # Example CMD (modify as needed)
17
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
18
+