26 lines
572 B
Docker
26 lines
572 B
Docker
FROM nginx:1.27-alpine
|
|
|
|
COPY landing/ /usr/share/nginx/html/
|
|
|
|
RUN printf 'server {\n\
|
|
listen 80;\n\
|
|
server_name _;\n\
|
|
root /usr/share/nginx/html;\n\
|
|
index index.html;\n\
|
|
\n\
|
|
location / {\n\
|
|
try_files $uri $uri/ /index.html;\n\
|
|
}\n\
|
|
\n\
|
|
location ~* \\.(?:css|js|svg|png|jpg|jpeg|gif|ico|webp|woff2?)$ {\n\
|
|
expires 7d;\n\
|
|
add_header Cache-Control "public, max-age=604800, immutable";\n\
|
|
}\n\
|
|
\n\
|
|
location = /site.webmanifest {\n\
|
|
add_header Content-Type application/manifest+json;\n\
|
|
}\n\
|
|
}\n' > /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 80
|