Skip to content
Permalink
Browse files
Merge remote-tracking branch 'awasum/docker' into awasum_docker
  • Loading branch information
Juhan Aasaru authored and Juhan Aasaru committed Sep 5, 2019
2 parents e9be30b + b097ba1 commit b85e35dbbce33bde2f6d56e943e17ee773808124
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 b85e35d

Please sign in to comment.