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
COPY . .
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 run astro telemetry disable
RUN npm run build
RUN rm ./dist/.original.favicon.ico
FROM forgejo.neshweb.net/ci-docker-images/website-serve:2 AS runtime
WORKDIR /
COPY --from=build /app/dist /public
COPY --from=build /app/serve.json /public/serve.json
RUN rm /public/.original.favicon.ico
EXPOSE 8081
CMD serve --listen 8081 --no-clipboard /public

4
package-lock.json generated
View file

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

View file

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

View file

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