mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
Create rootless Docker image for fladder (#400)
This commit is contained in:
commit
58a49cea0f
2 changed files with 23 additions and 0 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
|
@ -704,6 +704,18 @@ jobs:
|
|||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Deploy rootless-image to ghcr.io
|
||||
uses: mr-smithers-excellent/docker-build-push@v6
|
||||
with:
|
||||
dockerfile: Dockerfile-rootless
|
||||
image: fladder-rootless
|
||||
addLatest: true
|
||||
multiPlatform: true
|
||||
platform: linux/amd64,linux/arm64,linux/arm/v7
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Clean builds folder
|
||||
run: rm -rf build/web
|
||||
|
||||
|
|
|
|||
11
Dockerfile-rootless
Normal file
11
Dockerfile-rootless
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
FROM ghcr.io/nginxinc/nginx-unprivileged:stable-alpine-slim
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENV BASE_URL=""
|
||||
|
||||
COPY build/web /usr/share/nginx/html
|
||||
|
||||
RUN echo '{"baseUrl": "${BASE_URL}"}' > /usr/share/nginx/html/assets/config/config.json
|
||||
|
||||
CMD /bin/sh -c 'sed -i "s|\${BASE_URL}|${BASE_URL}|g" /usr/share/nginx/html/assets/config/config.json && nginx -g "daemon off;"'
|
||||
Loading…
Add table
Add a link
Reference in a new issue