ci: fix release dockerfile build

scarlett
NGPixel 1 month ago
parent 1c6e71eebf
commit 0376d78850
No known key found for this signature in database

@ -21,7 +21,7 @@ WORKDIR /wiki
COPY --chown=node:node ./assets ./assets COPY --chown=node:node ./assets ./assets
COPY --chown=node:node ./blocks/compiled ./blocks/compiled COPY --chown=node:node ./blocks/compiled ./blocks/compiled
COPY --chown=node:node ./server ./server COPY --chown=node:node ./backend ./backend
COPY --chown=node:node ./dev/build/config.yml ./config.yml COPY --chown=node:node ./dev/build/config.yml ./config.yml
COPY --chown=node:node ./LICENSE ./LICENSE COPY --chown=node:node ./LICENSE ./LICENSE
@ -35,18 +35,15 @@ ENV NODE_ENV=production
ENV PUPPETEER_SKIP_DOWNLOAD=true ENV PUPPETEER_SKIP_DOWNLOAD=true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
WORKDIR /wiki/server WORKDIR /wiki/backend
RUN pnpm install --prod --frozen-lockfile RUN npm ci --omit=dev
# The Puppeteer extension, which server-side page rendering needs. Added here rather than declared in # The Puppeteer extension, which server-side page rendering needs. Added here rather than declared in
# `backend/package.json` because it is an optional extension: an installation that renders its pages in # `backend/package.json` because it is an optional extension: an installation that renders its pages in
# the editor -- which is all of them, on any normal save -- has no use for a browser on the server, and # the editor -- which is all of them, on any normal save -- has no use for a browser on the server, and
# a source checkout should not have to fetch one to install the backend. Pinned like every other # a source checkout should not have to fetch one to install the backend. Pinned like every other
# dependency, so an image build is reproducible. # dependency, so an image build is reproducible.
RUN pnpm add puppeteer@25.4.0 RUN npm install --no-save puppeteer@25.4.0
# Set extensions as installed
RUN touch node_modules/sharp/wiki_installed.txt
WORKDIR /wiki WORKDIR /wiki

@ -6,12 +6,10 @@ db:
user: '$(DB_USER)' user: '$(DB_USER)'
pass: '$(DB_PASS)' pass: '$(DB_PASS)'
db: $(DB_NAME) db: $(DB_NAME)
schema: $(DB_SCHEMA:wiki)
ssl: $(DB_SSL) ssl: $(DB_SSL)
ssl:
enabled: $(SSL_ACTIVE)
port: 3443
provider: letsencrypt
domain: $(LETSENCRYPT_DOMAIN)
subscriberEmail: $(LETSENCRYPT_EMAIL)
logLevel: $(LOG_LEVEL:info) logLevel: $(LOG_LEVEL:info)
logFormat: $(LOG_FORMAT:default) logFormat: $(LOG_FORMAT:default)
dataPath: ./data
scheduler:
workers: auto

Loading…
Cancel
Save