-
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.
- Loading branch information
Showing
4 changed files
with
239 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM node:alpine AS build | ||
|
||
WORKDIR /app | ||
COPY package*.json ./ | ||
RUN npm ci | ||
COPY . . | ||
RUN npm run build | ||
|
||
FROM node:alpine AS deploy-node | ||
WORKDIR /app | ||
COPY --from=build /app/build . | ||
COPY --from=build /app/package.json . | ||
COPY --from=build /app/node_modules ./node_modules | ||
EXPOSE 5173 | ||
|
||
# Default Port | ||
ENV PORT=5173 | ||
# Default ENV variables for communication with clouditor engine | ||
ENV PUBLIC_OAUTH_AUTH_URL=http://localhost:8080/v1/auth/authorize | ||
ENV PUBLIC_OAUTH_TOKEN_URL=http://localhost:8080/v1/auth/token | ||
ENV PUBLIC_OAUTH_CLIENT_ID=dashboard | ||
ENV PUBLIC_OAUTH_REDIRECT_URI=http://localhost:5173/callback | ||
ENV PUBLIC_OAUTH_SCOPE="profile email" | ||
ENV PUBLIC_CLOUDITOR_URL=http://localhost:8080 | ||
CMD ["node", "index.js"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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