Starting on Docker changes
This commit is contained in:
parent
2908b36ecd
commit
9d79fdd73a
18
dockerfile
18
dockerfile
@ -1,24 +1,6 @@
|
|||||||
# Build site using Node JS
|
# Build site using Node JS
|
||||||
FROM node:21-slim
|
FROM node:21-slim
|
||||||
|
|
||||||
# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
|
|
||||||
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
|
|
||||||
# installs, work.
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install -y wget gnupg \
|
|
||||||
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
|
|
||||||
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
|
|
||||||
&& apt-get update \
|
|
||||||
&& apt-get install -y chromium fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \
|
|
||||||
--no-install-recommends \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
ENV PUPPETEER_SKIP_DOWNLOAD true
|
|
||||||
|
|
||||||
# Install puppeteer so it's available in the container.
|
|
||||||
RUN npm init -y && \
|
|
||||||
npm i -g puppeteer
|
|
||||||
|
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
|
|
||||||
LABEL \
|
LABEL \
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"repository": {
|
"repository": {
|
||||||
"url": "https://github.com/notclickable-jordan/starbase-80/"
|
"url": "https://github.com/notclickable-jordan/starbase-80/"
|
||||||
},
|
},
|
||||||
"version": "1.3.0",
|
"version": "1.4.0",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc && node ./dist/static.js && npm run html && npm run tailwind",
|
"build": "tsc && node ./dist/static.js && npm run html && npm run tailwind",
|
||||||
|
Loading…
Reference in New Issue
Block a user