switched container

This commit is contained in:
Firq 2025-04-15 21:37:44 +02:00
parent a4e306b45a
commit edb548144a
Signed by: Firq
GPG key ID: DCE182BA39C697B2
4 changed files with 9 additions and 11 deletions

View file

@ -1,21 +1,19 @@
FROM node:22-bookworm AS build FROM forgejo.neshweb.net/ci-docker-images/node-chromium:22 AS build
WORKDIR /app WORKDIR /app
COPY . .
ENV CI=true ENV CI=true
ENV CHROMIUM_VERSION="135.0.7049.84-1~deb12u1"
RUN apt-get update && apt-get -y install --no-install-recommends chromium=${CHROMIUM_VERSION} procps libxss1 && rm -rf /var/lib/apt/lists/* COPY . .
RUN npm i RUN npm i
RUN npm run astro telemetry disable RUN npm run astro telemetry disable
RUN npm run build RUN npm run build
RUN rm ./dist/.original.favicon.ico
FROM forgejo.neshweb.net/ci-docker-images/website-serve:2 AS runtime FROM forgejo.neshweb.net/ci-docker-images/website-serve:2 AS runtime
WORKDIR / WORKDIR /
COPY --from=build /app/dist /public COPY --from=build /app/dist /public
COPY --from=build /app/serve.json /public/serve.json COPY --from=build /app/serve.json /public/serve.json
RUN rm /public/.original.favicon.ico
EXPOSE 8081 EXPOSE 8081
CMD serve --listen 8081 --no-clipboard /public CMD serve --listen 8081 --no-clipboard /public

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "@firq/fgosite", "name": "@firq/fgosite",
"version": "0.2.0-pre.96", "version": "0.2.0-pre.97",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@firq/fgosite", "name": "@firq/fgosite",
"version": "0.2.0-pre.96", "version": "0.2.0-pre.97",
"dependencies": { "dependencies": {
"@astro-community/astro-embed-youtube": "^0.5.6", "@astro-community/astro-embed-youtube": "^0.5.6",
"@astrojs/check": "^0.9.4", "@astrojs/check": "^0.9.4",

View file

@ -1,7 +1,7 @@
{ {
"name": "@firq/fgosite", "name": "@firq/fgosite",
"type": "module", "type": "module",
"version": "0.2.0-pre.96", "version": "0.2.0-pre.97",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",

View file

@ -37,9 +37,9 @@ export default async (): Promise<UserConfig> => {
buildStatic: true, buildStatic: true,
}, },
scanner: { scanner: {
sitemap: true, sitemap: false,
dynamicSampling: false, dynamicSampling: false,
samples: 3, samples: 1,
}, },
outputPath: 'unlighthouse-reports', outputPath: 'unlighthouse-reports',
cache: true, cache: true,