firq-dev-website/Dockerfile

22 lines
529 B
Text
Raw Permalink Normal View History

2025-04-15 21:37:44 +02:00
FROM forgejo.neshweb.net/ci-docker-images/node-chromium:22 AS build
2023-12-21 00:16:39 +01:00
WORKDIR /app
ENV CI=true
2025-04-15 21:37:44 +02:00
COPY . .
2023-12-21 00:16:39 +01:00
RUN npm i
2024-07-20 16:56:29 +02:00
RUN npm run astro telemetry disable
2023-12-21 00:16:39 +01:00
RUN npm run build
2025-04-15 21:37:44 +02:00
RUN rm ./dist/.original.favicon.ico
2023-12-21 00:16:39 +01:00
FROM forgejo.neshweb.net/ci-docker-images/website-serve:2 AS runtime
2025-04-15 22:19:47 +02:00
ARG version=0.0.1
ENV version=${version}
2025-04-07 22:55:57 +00:00
WORKDIR /
2023-12-21 00:16:39 +01:00
COPY --from=build /app/dist /public
COPY --from=build /app/serve.json /public/serve.json
EXPOSE 8081
2025-04-15 23:44:20 +02:00
CMD echo "Website version ${version} - powered by @Firq"; serve --listen 8081 --no-clipboard /public