jbilcke-hf HF staff commited on
Commit
dd44428
·
1 Parent(s): e7d1ca9
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -19,7 +19,7 @@ RUN apk add build-base gcompat udev ttf-opensans chromium
19
  RUN apk add ffmpeg
20
 
21
  # Set up a new user named "user" with user ID 1000
22
- RUN adduser --disabled-password --uid 1000 user
23
 
24
  # Switch to the "user" user
25
  USER user
@@ -33,15 +33,15 @@ WORKDIR /app
33
  # Install app dependencies
34
  # A wildcard is used to ensure both package.json AND package-lock.json are copied
35
  # where available (npm@5+)
36
- COPY --link --chown=user package*.json /app
37
 
38
  # make sure the .env is copied as well
39
- COPY --link --chown=user .env /app
40
 
41
  RUN ffmpeg -version
42
 
43
  # Copy the current directory contents into the container at /app setting the owner to the user
44
- COPY --link --chown=user . $HOME/app
45
 
46
  RUN npm ci
47
 
 
19
  RUN apk add ffmpeg
20
 
21
  # Set up a new user named "user" with user ID 1000
22
+ RUN adduser --disabled-password --uid 1001 user
23
 
24
  # Switch to the "user" user
25
  USER user
 
33
  # Install app dependencies
34
  # A wildcard is used to ensure both package.json AND package-lock.json are copied
35
  # where available (npm@5+)
36
+ COPY --chown=user package*.json /app
37
 
38
  # make sure the .env is copied as well
39
+ COPY --chown=user .env /app
40
 
41
  RUN ffmpeg -version
42
 
43
  # Copy the current directory contents into the container at /app setting the owner to the user
44
+ COPY --chown=user . /app
45
 
46
  RUN npm ci
47