-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build: 252 create new build config for nomad job (#297)
* feat: add nomad build config * feat: nginx forward proxy * fix: adjust user endpoint * fix: undo changes * feat: load api in config.json file * fix: delete nginx extra router * build: set auth config dynamically * feat: update auth config after app config is loaded * test: fix app config service test --------- Co-authored-by: Saúl Fernández <[email protected]>
- Loading branch information
Showing
6 changed files
with
76 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
#stage 1 | ||
FROM node:20.5.1 as node | ||
FROM node:20.5.1 AS node | ||
WORKDIR /app | ||
COPY . . | ||
RUN npm ci | ||
RUN npm run generate-version-file | ||
RUN npm run build-ai4eosc-prod | ||
#stage 2 | ||
FROM nginx:alpine | ||
FROM nginx:alpine | ||
RUN apk add --no-cache jq bash | ||
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf | ||
COPY --from=node /app/dist/ai4-dashboard /usr/share/nginx/html | ||
COPY --from=node /app/dist/ai4-dashboard /usr/share/nginx/html | ||
CMD ["sh", "-c", "CLEAN_API_SERVER=$(echo $API_SERVER | sed 's:/*$::') && jq --arg cleanApi \"$CLEAN_API_SERVER\" '.apiURL = $cleanApi' /usr/share/nginx/html/assets/config.json > /usr/share/nginx/html/assets/config.tmp && mv /usr/share/nginx/html/assets/config.tmp /usr/share/nginx/html/assets/config.json && nginx -g 'daemon off;'"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters