File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,8 +14,10 @@ ARG USE_EDGE=false
1414COPY package*.json ./
1515
1616RUN if [ "$USE_EDGE" = "true" ]; then \
17+ apt-get update && apt-get install -y --no-install-recommends git ca-certificates && \
1718 npm ci --only=production --ignore-scripts && \
18- npm install --save-exact github:pedroslopez/whatsapp-web.js#main; \
19+ npm install --save-exact git+https://github.com/pedroslopez/whatsapp-web.js.git#main && \
20+ apt-get purge -y git ca-certificates && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*; \
1921 else \
2022 npm ci --only=production --ignore-scripts; \
2123 fi
@@ -34,9 +36,13 @@ RUN apt-get update && \
3436
3537# Copy only production dependencies from deps stage
3638COPY --from=deps /usr/src/app/node_modules ./node_modules
39+ COPY --from=deps /usr/src/app/package*.json ./
3740
3841# Copy application code
39- COPY . .
42+ COPY server.js ./
43+ COPY LICENSE ./
44+ COPY swagger.json ./
45+ COPY src/ ./src/
4046
4147EXPOSE 3000
4248
You can’t perform that action at this time.
0 commit comments