Skip to content

Commit

Permalink
update docker
Browse files Browse the repository at this point in the history
  • Loading branch information
NguyenBao10 committed Aug 9, 2024
1 parent 2036a56 commit 3ee5ee8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
29 changes: 15 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@

## builder
FROM node:18-alpine AS builder

ARG REACT_APP_ENDPOINT_URL
ARG REACT_APP_BI_ENDPOINT_URL
ARG REACT_APP_WEB3_API_ENDPOINT
ARG REACT_APP_ENDPOINT_ANALYTICS_URL
ARG REACT_APP_SSO_CLIENT_ID
ARG REACT_APP_SSO_CLIENT_SECRET
ARG REACT_APP_SSO_CONCORDIUM_NETWORK
ARG REACT_APP_WOOCOMMERCE_MENU
ARG REACT_APP_DATA_STREAM
ARG REACT_APP_DEMO_USER
ARG REACT_APP_DEMO_PASSWORD
ARG REACT_APP_LOGIN_EMAIL

WORKDIR /app

COPY .git .
Expand Down Expand Up @@ -39,17 +53,4 @@ RUN yarn add serve react-inject-env
# Expose port
EXPOSE 3000

ENTRYPOINT npx react-inject-env set && npx serve -s build

ARG REACT_APP_ENDPOINT_URL
ARG REACT_APP_BI_ENDPOINT_URL
ARG REACT_APP_WEB3_API_ENDPOINT
ARG REACT_APP_ENDPOINT_ANALYTICS_URL
ARG REACT_APP_SSO_CLIENT_ID
ARG REACT_APP_SSO_CLIENT_SECRET
ARG REACT_APP_SSO_CONCORDIUM_NETWORK
ARG REACT_APP_WOOCOMMERCE_MENU
ARG REACT_APP_DATA_STREAM
ARG REACT_APP_DEMO_USER
ARG REACT_APP_DEMO_PASSWORD
ARG REACT_APP_LOGIN_EMAIL
ENTRYPOINT npx react-inject-env set && npx serve -s build
2 changes: 1 addition & 1 deletion packages/aesirx-bi-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aesirx-bi-app",
"version": "2.0.17",
"version": "2.0.18",
"license": "GPL-3.0-only",
"author": "AesirX",
"main": "dist/index.js",
Expand Down

0 comments on commit 3ee5ee8

Please sign in to comment.