mirror of
https://git.netzspielplatz.de/docker-multiarch/openwrt-firmware-selector.git
synced 2025-11-08 22:29:28 +00:00
added a Dockerfile and gitlab-ci config
This commit is contained in:
parent
427ea588aa
commit
7fb882b61d
3 changed files with 48 additions and 0 deletions
24
Dockerfile
Normal file
24
Dockerfile
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
FROM node:lts-alpine as build
|
||||
|
||||
ARG HOMEPAGE="/"
|
||||
ARG ASU_URL="https://chef.libremesh.org"
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN cat src/config.ts
|
||||
RUN sed -i "s#asu_url: 'https://chef.libremesh.org'#asu_url: '$ASU_URL'#g" src/config.ts
|
||||
RUN cat src/config.ts
|
||||
# quick hack to get the multiarch builds running
|
||||
RUN yarn add @material-ui/icons
|
||||
# make the homepage config var configurable on buildtime via docker build-arg
|
||||
RUN yarn add json
|
||||
RUN node_modules/.bin/json -I -f package.json -e "this.homepage='$HOMEPAGE'"
|
||||
|
||||
RUN yarn install
|
||||
RUN yarn build
|
||||
|
||||
FROM nginx:stable-alpine AS release
|
||||
COPY --from=build /usr/src/app/build /usr/share/nginx/html
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue