CI: Fix compilation problems
This commit is contained in:
parent
a255480195
commit
3c42bef298
@ -64,6 +64,7 @@ steps:
|
||||
- apk --no-cache add python2 build-base
|
||||
- cd frontend/ui
|
||||
- npm install --network-timeout=100000
|
||||
- sed -i 's!@popperjs/core/dist/esm/popper!@popperjs/core!' node_modules/sveltestrap/src/*.js node_modules/sveltestrap/src/*.svelte
|
||||
- npm run build
|
||||
|
||||
- name: build dashboard
|
||||
@ -273,6 +274,7 @@ steps:
|
||||
- apk --no-cache add python2 build-base
|
||||
- cd frontend/ui
|
||||
- npm install --network-timeout=100000
|
||||
- sed -i 's!@popperjs/core/dist/esm/popper!@popperjs/core!' node_modules/sveltestrap/src/*.js node_modules/sveltestrap/src/*.svelte
|
||||
- npm run build
|
||||
|
||||
- name: build dashboard
|
||||
|
@ -6,8 +6,9 @@ RUN apk --no-cache add python2 build-base
|
||||
|
||||
COPY frontend/ui/ .
|
||||
|
||||
RUN npm install --network-timeout 100000
|
||||
RUN npm run build
|
||||
RUN npm install --network-timeout=100000 && \
|
||||
sed -i 's!@popperjs/core/dist/esm/popper!@popperjs/core!' node_modules/sveltestrap/src/*.js node_modules/sveltestrap/src/*.svelte && \
|
||||
npm run build
|
||||
|
||||
|
||||
FROM nginx:stable-alpine
|
||||
|
@ -135,6 +135,7 @@ func main() {
|
||||
if sDir, err := filepath.Abs(*staticDir); err != nil {
|
||||
log.Fatal(err)
|
||||
} else {
|
||||
log.Println("Serving pages from", sDir)
|
||||
staticFS = http.Dir(sDir)
|
||||
sync.DeepReportPath = path.Join(sDir, sync.DeepReportPath)
|
||||
}
|
||||
@ -143,6 +144,7 @@ func main() {
|
||||
if err != nil {
|
||||
log.Fatal("Unable to cd to static/ directory:", err)
|
||||
}
|
||||
log.Println("Serving pages from memory.")
|
||||
staticFS = http.FS(sub)
|
||||
sync.DeepReportPath = path.Join("SYNC", sync.DeepReportPath)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user