Spaces:
Runtime error
Runtime error
Upload Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
@@ -5,6 +5,8 @@ FROM node:alpine
|
|
5 |
# install git
|
6 |
RUN apk add --no-cache git
|
7 |
|
|
|
|
|
8 |
# Switch to the newly created user
|
9 |
USER node
|
10 |
|
@@ -21,7 +23,6 @@ COPY --chown=node:node package*.json ./
|
|
21 |
# Install Node.js dependencies
|
22 |
RUN npm install
|
23 |
# Also download new browser binaries and their dependencies:
|
24 |
-
RUN npx playwright install --with-deps
|
25 |
|
26 |
# Copy the application code to the working directory
|
27 |
COPY --chown=node:node . .
|
|
|
5 |
# install git
|
6 |
RUN apk add --no-cache git
|
7 |
|
8 |
+
RUN npx playwright install --with-deps
|
9 |
+
|
10 |
# Switch to the newly created user
|
11 |
USER node
|
12 |
|
|
|
23 |
# Install Node.js dependencies
|
24 |
RUN npm install
|
25 |
# Also download new browser binaries and their dependencies:
|
|
|
26 |
|
27 |
# Copy the application code to the working directory
|
28 |
COPY --chown=node:node . .
|