mjuvilla commited on
Commit
80b995d
·
1 Parent(s): fad842d
Files changed (1) hide show
  1. Dockerfile +15 -15
Dockerfile CHANGED
@@ -1,21 +1,21 @@
1
  FROM python:3.12-slim
2
- # Set up a new user named "user" with user ID 1000
3
- RUN useradd -m -u 1000 user
 
 
 
 
 
 
 
4
 
5
- # Switch to the "user" user
6
- USER user
7
 
8
- # Set home to the user's home directory
9
- ENV HOME=/home/user \
10
- PATH=/home/user/.local/bin:$PATH
11
-
12
- # Set the working directory to the user's home directory
13
- WORKDIR $HOME/app
14
-
15
- COPY --chown=user src ./src
16
- COPY --chown=user scripts ./scripts
17
- COPY --chown=user gradio_app.py .
18
- COPY --chown=user requirements.txt .
19
 
20
  ENV DOCKER_ENV=1
21
  RUN bash scripts/setup_env.sh
 
1
  FROM python:3.12-slim
2
+ ## Set up a new user named "user" with user ID 1000
3
+ #RUN useradd -m -u 1000 user
4
+ #
5
+ ## Switch to the "user" user
6
+ #USER user
7
+ #
8
+ ## Set home to the user's home directory
9
+ #ENV HOME=/home/user \
10
+ # PATH=/home/user/.local/bin:$PATH
11
 
12
+ ## Set the working directory to the user's home directory
13
+ #WORKDIR $HOME/app
14
 
15
+ COPY src ./src
16
+ COPY scripts ./scripts
17
+ COPY gradio_app.py .
18
+ COPY requirements.txt .
 
 
 
 
 
 
 
19
 
20
  ENV DOCKER_ENV=1
21
  RUN bash scripts/setup_env.sh