rubis/Dockerfile
ordinarthur 42434b962a
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 25s
fix: typos \n\x dans le Dockerfile cassaient le build nginx
2026-05-05 19:04:48 +02:00

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