Skip to content

Commit

Permalink
Merge pull request #701 from NoodleOfDeath/dev
Browse files Browse the repository at this point in the history
~api
  • Loading branch information
NoodleOfDeath authored Oct 16, 2023
2 parents 8ad2df6 + 9b9088c commit 03d27a2
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Dockerfile.api
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM --platform=linux/amd64 node:19.3.0 AS base

# install libvips
RUN apt-get update && apt-get install -y libvips

WORKDIR /home/node
COPY src/core ./core
WORKDIR /home/node/app
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile.api.local
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM --platform=linux/amd64 node:19.3.0 AS base

# install libvips
RUN apt-get update && apt-get install -y libvips

WORKDIR /home/node
COPY src/core ./core
WORKDIR /home/node/app
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile.scheduler
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ FROM --platform=linux/amd64 node:19.3.0 AS base
# We don't need the standalone Chromium
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true

# install libvips
RUN apt-get update && apt-get install -y libvips

# install chromium for puppeteer
RUN apt-get update && apt-get install gnupg wget -y && \
wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile.scheduler.local
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ FROM --platform=linux/amd64 node:19.3.0 AS base
# We don't need the standalone Chromium
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true

# install libvips
RUN apt-get update && apt-get install -y libvips

# install chromium for puppeteer
RUN apt-get update && apt-get install gnupg wget -y && \
wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile.worker.local
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ FROM --platform=linux/amd64 node:19.3.0 AS base
# We don't need the standalone Chromium
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true

# install libvips
RUN apt-get update && apt-get install -y libvips

# install chromium for puppeteer
RUN apt-get update && apt-get install gnupg wget -y && \
wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
Expand Down
4 changes: 2 additions & 2 deletions src/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"dev:api": "nodemon --config nodemon.api.json -x 'ts-node ./serve-api.ts'",
"dev:scheduler": "nodemon --config nodemon.scheduler.json -x 'ts-node ./serve-scheduler.ts'",
"dev:worker": "nodemon --config nodemon.worker.json -x 'ts-node ./serve-worker.ts'",
"build:api": "rimraf dist/serve-api.cjs && esbuild ./src/api --bundle --platform=node --outfile=./dist/serve-api.cjs",
"build:scheduler": "rimraf dist/serve-scheduler.cjs && esbuild ./src/scheduler --bundle --platform=node --outfile=./dist/serve-scheduler.cjs",
"build:api": "rimraf dist/serve-api.cjs && esbuild ./src/api --bundle --platform=node --external:sharp --outfile=./dist/serve-api.cjs",
"build:scheduler": "rimraf dist/serve-scheduler.cjs && esbuild ./src/scheduler --bundle --platform=node --external:sharp --outfile=./dist/serve-scheduler.cjs",
"build:worker": "rimraf dist/serve-worker.cjs && esbuild ./src/worker --bundle --platform=node --external:sharp --outfile=./dist/serve-worker.cjs",
"gen:site": "yarn test gen",
"cp:core": "if [[ -d src/core ]]; then rm -rf src/core; fi && mkdir -p ./src/core/utils && cp -rf ../core/src/utils/* ./src/core/utils && cp -rf ../core/src/client/locales ./src/core/locales && cp -rf node_modules/sharp/build .",
Expand Down

0 comments on commit 03d27a2

Please sign in to comment.