1
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -1,11 +1,11 @@
|
|||||||
FROM nginx:alpine
|
FROM nginx:alpine [cite: 1]
|
||||||
|
|
||||||
RUN rm -rf /usr/share/nginx/html/*
|
RUN rm -rf /usr/share/nginx/html/*
|
||||||
|
|
||||||
COPY ["Dekra WebSite", "/usr/share/nginx/html"]
|
COPY webapp/ /usr/share/nginx/html
|
||||||
|
|
||||||
COPY vhost.conf /etc/nginx/conf.d/default.conf
|
COPY vhost.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80 [cite: 1]
|
||||||
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
@@ -9,7 +9,7 @@ server {
|
|||||||
try_files $uri $uri/ $uri.html =404;
|
try_files $uri $uri/ $uri.html =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(jpg|jpeg|png|gif|ico|css|js|mp4|webm)$ {
|
location ~* \.(jpg|jpeg|png|gif|ico|css|js|json|mp4|webm)$ {
|
||||||
expires 30d;
|
expires 30d;
|
||||||
add_header Cache-Control "public, no-transform";
|
add_header Cache-Control "public, no-transform";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user