Skip to content
Permalink
Browse files
Merge pull request #18 from awasum/docker
FINCN-164: Dockerize fims web app
  • Loading branch information
awasum committed Sep 5, 2019
2 parents e9be30b + b097ba1 commit 90299109d2b2340500e8f203a1f310967e940fcb
Showing 3 changed files with 29 additions and 1 deletion.
@@ -0,0 +1,3 @@
dist
node_modules
bower_components
@@ -0,0 +1,25 @@
# Stage 1: Build fims web app
FROM node:8.11.2-alpine as node

WORKDIR /usr/src/app

COPY package*.json ./

RUN npm install

COPY . .

RUN npm run build

# Stage 2: Host Fims web app on Nginx
FROM nginx:1.16.0

RUN rm -f /etc/nginx/nginx.conf

COPY --from=node /usr/src/app/dist /usr/share/nginx/html

COPY ./scripts/nginx/nginx.conf /etc/nginx/nginx.conf

EXPOSE 8888

CMD ["nginx", "-g", "daemon off;"]
@@ -9,7 +9,7 @@ http {
server_name localhost;
large_client_header_buffers 4 32k;

root fims;
root /usr/share/nginx/html;
index index.html index.htm;
include mime.types;

0 comments on commit 9029910

Please sign in to comment.