shreyank: Dockerize mifos web-app

This commit is contained in:
Shreyank Byadagi
2021-07-01 18:48:19 +05:30
parent f51d8e86f9
commit 47bf9db86e
3 changed files with 25 additions and 4 deletions
+21
View File
@@ -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;"]
+2 -2
View File
@@ -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: '',
+2 -2
View File
@@ -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: '',