gudada commited on
Commit
94a3ced
·
verified ·
1 Parent(s): f052036

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -1,12 +1,12 @@
1
  # Set up a new user named "user" with user ID 1000
2
- RUN useradd -m -u 1000 user
3
 
4
  # Switch to the "user" user
5
- USER user
6
 
7
  # Set home to the user's home directory
8
- ENV HOME=/home/user \
9
- PATH=/home/user/.local/bin:$PATH
10
 
11
  # Set the working directory to the user's home directory
12
  WORKDIR $HOME/app
@@ -15,11 +15,11 @@ WORKDIR $HOME/app
15
  RUN pip install --no-cache-dir --upgrade pip
16
 
17
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
18
- COPY --chown=user . $HOME/app
19
 
20
  # Download a checkpoint
21
  RUN mkdir content
22
- ADD --chown=user https://<SOME_ASSET_URL> content/<SOME_ASSET_NAME>
23
 
24
 
25
  FROM node:lts AS BUILD_IMAGE
 
1
  # Set up a new user named "user" with user ID 1000
2
+ RUN useradd -m -u 1000 app
3
 
4
  # Switch to the "user" user
5
+ USER app
6
 
7
  # Set home to the user's home directory
8
+ ENV HOME=/home/app \
9
+ PATH=/home/app/.local/bin:$PATH
10
 
11
  # Set the working directory to the user's home directory
12
  WORKDIR $HOME/app
 
15
  RUN pip install --no-cache-dir --upgrade pip
16
 
17
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
18
+ COPY --chown=app . $HOME/app
19
 
20
  # Download a checkpoint
21
  RUN mkdir content
22
+ #ADD --chown=user https://<SOME_ASSET_URL> content/<SOME_ASSET_NAME>
23
 
24
 
25
  FROM node:lts AS BUILD_IMAGE