Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -4,16 +4,16 @@ FROM ghcr.io/puppeteer/puppeteer:latest
|
|
4 |
ENV TOKEN=MTAyOTExOTAzMzEwODM0NDg0Mw.GHRuSg.UJGFPx7vbUBU23sHWzUPastwQXwsi1aWZnKjho \
|
5 |
MSGCHANNEL=1226099247963832351 \
|
6 |
ACCESS_TOKEN=2f763b38ad6c26368f5b6d3c86b2089bb98acfd4 \
|
7 |
-
CHARACTER_ID=PH7dDFG7FXHnEIcTw8maMJypt142z7HLYqt6Vdz88YE
|
|
|
|
|
8 |
|
9 |
# Set the working directory
|
10 |
WORKDIR /code
|
11 |
|
12 |
-
RUN npx puppeteer browsers install chrome
|
13 |
-
|
14 |
# Copy package.json and install dependencies
|
15 |
-
COPY package
|
16 |
-
RUN npm
|
17 |
|
18 |
# Copy the rest of the application code
|
19 |
COPY . .
|
|
|
4 |
ENV TOKEN=MTAyOTExOTAzMzEwODM0NDg0Mw.GHRuSg.UJGFPx7vbUBU23sHWzUPastwQXwsi1aWZnKjho \
|
5 |
MSGCHANNEL=1226099247963832351 \
|
6 |
ACCESS_TOKEN=2f763b38ad6c26368f5b6d3c86b2089bb98acfd4 \
|
7 |
+
CHARACTER_ID=PH7dDFG7FXHnEIcTw8maMJypt142z7HLYqt6Vdz88YE \
|
8 |
+
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
|
9 |
+
PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome-stable
|
10 |
|
11 |
# Set the working directory
|
12 |
WORKDIR /code
|
13 |
|
|
|
|
|
14 |
# Copy package.json and install dependencies
|
15 |
+
COPY package*.json ./
|
16 |
+
RUN npm ci
|
17 |
|
18 |
# Copy the rest of the application code
|
19 |
COPY . .
|