mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
switching to pnpm for faster build
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -9,14 +9,13 @@ RUN apt-get update && apt-get install -y chromium
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
|
||||
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
|
||||
|
||||
# Timeout fix für yarn hinzugefügt
|
||||
RUN yarn config set network-timeout 600000
|
||||
RUN corepack enable && pnpm config set network-timeout 600000
|
||||
|
||||
RUN yarn install
|
||||
RUN pnpm install
|
||||
|
||||
RUN yarn global add pm2
|
||||
RUN pnpm add -g pm2
|
||||
|
||||
RUN yarn run prod
|
||||
RUN pnpm run prod
|
||||
|
||||
RUN mkdir /db /conf && \
|
||||
chown 1000:1000 /db /conf && \
|
||||
@@ -25,4 +24,4 @@ RUN mkdir /db /conf && \
|
||||
|
||||
EXPOSE 9998
|
||||
|
||||
CMD pm2-runtime index.js
|
||||
CMD pm2-runtime index.js
|
||||
Reference in New Issue
Block a user