switched container
This commit is contained in:
parent
a4e306b45a
commit
edb548144a
4 changed files with 9 additions and 11 deletions
10
Dockerfile
10
Dockerfile
|
@ -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
4
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue