sh start script

This commit is contained in:
Firq 2025-04-15 22:19:47 +02:00
parent 1cae67023f
commit d53bae9537
Signed by: Firq
GPG key ID: DCE182BA39C697B2
4 changed files with 23 additions and 6 deletions

View file

@ -38,6 +38,11 @@ jobs:
with:
name: unlighthouse-reports
path: unlighthouse-reports/
- name: Upload start-script
uses: actions/upload-artifact@v3
with:
name: start
path: start.sh
- name: Upload Dockerfile
uses: actions/upload-artifact@v3
with:
@ -53,6 +58,10 @@ jobs:
uses: actions/download-artifact@v3
with:
name: dockerfile
- name: Downloading start script
uses: actions/download-artifact@v3
with:
name: start
- name: Downloading static site artifacts
uses: actions/download-artifact@v3
with:

View file

@ -10,12 +10,14 @@ RUN npm run build
RUN rm ./dist/.original.favicon.ico
FROM forgejo.neshweb.net/ci-docker-images/website-serve:2 AS runtime
ARG version
ENV version=0.0.1
ARG version=0.0.1
ENV version=${version}
WORKDIR /
COPY --from=build /app/dist /public
COPY --from=build /app/serve.json /public/serve.json
COPY --from=build /app/start.sh /
RUN chmod +x start.sh
EXPOSE 8081
CMD echo $version; serve --listen 8081 --no-clipboard /public
CMD ./start.sh

View file

@ -1,10 +1,12 @@
FROM forgejo.neshweb.net/ci-docker-images/website-serve:2 AS runtime
ARG version
ENV version=0.0.1
ARG version=0.0.1
ENV version=${version}
WORKDIR /
ADD reports /public
ADD start.sh /
RUN chmod +x /start.sh
EXPOSE 8081
CMD echo $version; serve --listen 8081 --no-clipboard /public
CMD ./start.sh

4
start.sh Normal file
View file

@ -0,0 +1,4 @@
#!/bin/sh
echo "Website version: ${version}"
echo "powered by @Firq"
serve --listen 8081 --no-clipboard /public