Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #18 from awasum/docker
FINCN-164: Dockerize fims web app
- Loading branch information
Showing
3 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,3 @@ | ||
dist | ||
node_modules | ||
bower_components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -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;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -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; | ||
|
||