Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
dd44428
1
Parent(s):
e7d1ca9
hm
Browse files- 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
|
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 --
|
37 |
|
38 |
# make sure the .env is copied as well
|
39 |
-
COPY --
|
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 --
|
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 |
|