Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -4,10 +4,10 @@ FROM node:18-alpine
|
|
| 4 |
# Set the working directory inside the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Install git, Chromium, FFmpeg, and other dependencies
|
| 8 |
RUN apk add --no-cache \
|
| 9 |
git \
|
| 10 |
-
python2 \
|
| 11 |
chromium \
|
| 12 |
nss \
|
| 13 |
freetype \
|
|
@@ -21,7 +21,7 @@ RUN apk add --no-cache \
|
|
| 21 |
COPY package*.json ./
|
| 22 |
|
| 23 |
# Install production dependencies
|
| 24 |
-
RUN npm install --
|
| 25 |
|
| 26 |
# Install PM2 globally
|
| 27 |
RUN npm install -g pm2
|
|
|
|
| 4 |
# Set the working directory inside the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Install git, Python, Chromium, FFmpeg, and other dependencies
|
| 8 |
RUN apk add --no-cache \
|
| 9 |
git \
|
| 10 |
+
python2 \
|
| 11 |
chromium \
|
| 12 |
nss \
|
| 13 |
freetype \
|
|
|
|
| 21 |
COPY package*.json ./
|
| 22 |
|
| 23 |
# Install production dependencies
|
| 24 |
+
RUN npm install --only=production --unsafe-perm=true --allow-root
|
| 25 |
|
| 26 |
# Install PM2 globally
|
| 27 |
RUN npm install -g pm2
|