Commit 642bcd21 authored by cazenave's avatar cazenave
Browse files

add dockerfile

parent 699f4619
### STAGE 1: Build ###
FROM node:12.7-alpine AS build
WORKDIR /usr/src/app
COPY package.json package-lock.json ./
RUN npm install
COPY . .
RUN npm run build
### STAGE 2: Run ###
FROM nginx:1.17.1-alpine
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /usr/src/app/dist/register-front /usr/share/nginx/html
events{}
http {
include /etc/nginx/mime.types;
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}
}
......@@ -147,7 +147,6 @@
<button mat-menu-item [matMenuTriggerFor]="subMenuDataset">Describe access to datasets</button>
<mat-menu #subMenuDataset="matMenu">
<button mat-menu-item routerLink="/accessapi" routerLinkActive="active">Describe the access API</button>
<button mat-menu-item routerLink="/swaggerapi" routerLinkActive="active">Swagger API editor</button>
<button mat-menu-item routerLink="/datasets" routerLinkActive="active">Select your datasets to publish</button>
</mat-menu>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment