sh start script
This commit is contained in:
parent
1cae67023f
commit
d53bae9537
4 changed files with 23 additions and 6 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
4
start.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
echo "Website version: ${version}"
|
||||
echo "powered by @Firq"
|
||||
serve --listen 8081 --no-clipboard /public
|
Loading…
Add table
Reference in a new issue