Skip to content

Commit d02fa80

Browse files
author
David Parks
committed
updated dockerfile to point to newer nginx
added mimetypes
1 parent 2054105 commit d02fa80

File tree

5 files changed

+22
-13
lines changed

5 files changed

+22
-13
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
################################################################################
2+
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
3+
################################################################################
4+
5+
/.vs

Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
FROM nginx:1.10.2
2-
MAINTAINER Kyle Mathews "[email protected]"
1+
FROM nginx:1.13-alpine
32

43
RUN rm /etc/nginx/nginx.conf /etc/nginx/mime.types
54
COPY nginx.conf /etc/nginx/nginx.conf

location/cache-busting.conf

-10
This file was deleted.

mime.types

+6
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ types {
2121

2222
# JavaScript
2323
application/javascript js;
24+
application/x-javascript js;
2425
application/json json;
26+
text/json json;
2527

2628
# Manifest files
2729
application/x-web-app-manifest+json webapp;
@@ -84,6 +86,7 @@ types {
8486
application/x-shockwave-flash swf;
8587
application/x-stuffit sit;
8688
application/x-tcl tcl tk;
89+
application/x-typescript ts tsx;
8790
application/x-x509-ca-cert der pem crt;
8891
application/x-bittorrent torrent;
8992
application/zip zip;
@@ -99,10 +102,13 @@ types {
99102
text/html html htm shtml;
100103
text/mathml mml;
101104
text/plain txt;
105+
text/x-typescript ts tsx;
102106
text/vnd.sun.j2me.app-descriptor jad;
103107
text/vnd.wap.wml wml;
104108
text/vtt vtt;
105109
text/x-component htc;
110+
text/x-sass sass;
111+
text/x-scss scss;
106112
text/x-vcard vcf;
107113

108114
}

nginx.conf

+10-1
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,24 @@ http {
108108
application/rss+xml
109109
application/vnd.ms-fontobject
110110
application/x-font-ttf
111+
application/x-javascript
112+
application/x-typescript
111113
application/x-web-app-manifest+json
112114
application/xhtml+xml
113115
application/xml
114116
font/opentype
115117
image/svg+xml
116118
image/x-icon
117119
text/css
120+
text/less
118121
text/plain
119-
text/x-component;
122+
text/json
123+
text/x-sass
124+
text/x-scss
125+
text/x-javascript
126+
text/x-typescript
127+
text/x-component
128+
text/xml;
120129
# text/html is always compressed by HttpGzipModule
121130

122131

0 commit comments

Comments
 (0)