shreyank: Dockerize mifos web-app
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
FROM node:12-alpine as builder
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
ENV PATH /usr/src/app/node_modules/.bin:$PATH
|
||||
|
||||
COPY package.json /usr/src/app/package.json
|
||||
|
||||
RUN npm install -g @angular/cli@9.1.12
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
FROM nginx:1.19.3
|
||||
|
||||
COPY --from=builder /usr/src/app/dist/web-app /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
@@ -3,10 +3,10 @@ import env from './.env';
|
||||
|
||||
export const environment = {
|
||||
production: true,
|
||||
version: env.mifos_x_version,
|
||||
version: env[mifos_x_version],
|
||||
fineractPlatformTenantId: 'default', // For connecting to server running elsewhere update the tenant identifier
|
||||
baseApiUrl: JSON.parse(localStorage.getItem('mifosXServerURL')) || 'https://demo.fineract.dev', // For connecting to server running elsewhere update the base API URL
|
||||
allowServerSwitch: env.allow_switching_backend_instance,
|
||||
allowServerSwitch: env[allow_switching_backend_instance],
|
||||
apiProvider: '/fineract-provider/api',
|
||||
apiVersion: '/v1',
|
||||
serverUrl: '',
|
||||
|
||||
@@ -8,10 +8,10 @@ import env from './.env';
|
||||
|
||||
export const environment = {
|
||||
production: false,
|
||||
version: env.mifos_x_version + '-dev',
|
||||
version: env[mifos_x_version] + '-dev',
|
||||
fineractPlatformTenantId: 'default', // For connecting to server running elsewhere update the tenant identifier
|
||||
baseApiUrl: JSON.parse(localStorage.getItem('mifosXServerURL')) || 'https://dev.mifos.io', // For connecting to server running elsewhere update the base API URL
|
||||
allowServerSwitch: env.allow_switching_backend_instance,
|
||||
allowServerSwitch: env[allow_switching_backend_instance],
|
||||
apiProvider: '/fineract-provider/api',
|
||||
apiVersion: '/v1',
|
||||
serverUrl: '',
|
||||
|
||||
Reference in New Issue
Block a user