slight chnages in dockerfile
This commit is contained in:
25
support-portal-frontend/Dockerfile
Normal file
25
support-portal-frontend/Dockerfile
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
|
||||
### STAGE 1: Build ###
|
||||
FROM node:12.22.12 AS build
|
||||
WORKDIR /usr/src/app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm install --save --legacy-peer-deps
|
||||
COPY . .
|
||||
RUN npm run build --prod
|
||||
|
||||
|
||||
### STAGE 2: Run ###
|
||||
FROM nginx:1.17.1-alpine
|
||||
# COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY --from=build /usr/src/app/dist/support-portal-frontend /usr/share/nginx/html
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Expose port 80 to the Docker host, so we can access it
|
||||
# from the outside.
|
||||
EXPOSE 80
|
||||
|
||||
ENTRYPOINT ["nginx","-g","daemon off;"]
|
||||
@ -94,7 +94,7 @@ export const routes: Routes = [
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forRoot(routes)],
|
||||
imports: [RouterModule.forRoot(routes,{ useHash: true)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class AppRoutingModule {}
|
||||
|
||||
@ -9,7 +9,9 @@ export const environment = {
|
||||
// apiUrl: 'http://portal-bean.shyshkin.net',
|
||||
// apiUrl: 'http://supportportalbackend-env.eba-wfr5wya3.eu-north-1.elasticbeanstalk.com',
|
||||
// apiUrl: 'http://support-portal.shyshkin.net:5000',
|
||||
apiUrl: 'http://localhost:8080',
|
||||
// apiUrl: 'http://localhost:8080',
|
||||
apiUrl: 'http://cncbackend.techzoos.in',
|
||||
|
||||
publicUrls: ['/user/login', '/user/register', '/user/*/profile-image', '/user/*/profile-image/**']
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user