forked from thrasher-corp/gocryptotrader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matthäus Mayer
authored and
Matthäus Mayer
committed
Mar 2, 2018
1 parent
c3e968b
commit 7b4f906
Showing
3 changed files
with
39 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
.git |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM node:9-alpine as build | ||
COPY package.json package-lock.json ./ | ||
RUN npm set progress=false \ | ||
&& npm config set depth 0 \ | ||
&& npm cache clean --force | ||
RUN npm i \ | ||
&& mkdir /app \ | ||
&& cp -R ./node_modules /app | ||
WORKDIR /app | ||
COPY . . | ||
RUN $(npm bin)/ng build --prod --build-optimizer | ||
|
||
FROM nginx:1.13.3-alpine | ||
RUN rm -rf /var/www/html/* | ||
COPY nginx/default.conf /etc/nginx/conf.d/ | ||
COPY --from=build /app/dist /var/www/html | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
server { | ||
listen 80; | ||
sendfile on; | ||
default_type application/octet-stream; | ||
gzip on; | ||
gzip_http_version 1.1; | ||
gzip_disable "MSIE [1-6]\."; | ||
gzip_min_length 256; | ||
gzip_vary on; | ||
gzip_proxied expired no-cache no-store private auth; | ||
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript; | ||
gzip_comp_level 9; | ||
|
||
root /var/www/html; | ||
|
||
location / { | ||
try_files $uri $uri/ /index.html =404; | ||
} | ||
|
||
} |