rubis/Dockerfile
ordinarthur 269c67ace2
Some checks failed
Build & Deploy / build-and-deploy (push) Failing after 8s
add landing v3
2026-05-05 18:52:34 +02:00

26 lines
574 B
Docker

FROM nginx:1.27-alpine
COPY landing/ /usr/share/nginx/html/
RUN printf 'server {\n\
listen 80;\n\x
server_name _;\n\
root /usr/share/nginx/html;\n\
index index.html;\n\
\n\
location / {\n\x
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