Swapnil-101 commited on
Commit
71694d5
·
verified ·
1 Parent(s): e254e3f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -6,8 +6,8 @@ RUN useradd -m -u 1000 user
6
  RUN pwd && ls -l
7
 
8
  # Set the working directory and user environment variables
9
- ENV HOME=/home/user \
10
- PATH=/home/user/.local/bin:$PATH
11
 
12
  # Switch to the user's home directory
13
  WORKDIR $HOME
@@ -38,6 +38,5 @@ WORKDIR $HOME
38
 
39
  RUN pwd && ls -l
40
 
41
-
42
  # Start the application using gunicorn
43
  CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "--timeout", "300", "main:app"]
 
6
  RUN pwd && ls -l
7
 
8
  # Set the working directory and user environment variables
9
+ ENV HOME=/
10
+ PATH=/bin:$PATH
11
 
12
  # Switch to the user's home directory
13
  WORKDIR $HOME
 
38
 
39
  RUN pwd && ls -l
40
 
 
41
  # Start the application using gunicorn
42
  CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "--timeout", "300", "main:app"]