rubis/Dockerfile
ordinarthur 3c1d7fbd71
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 2m13s
add landing
2026-05-05 16:52:10 +02:00

26 lines
571 B
Docker

FROM nginx:1.27-alpine
COPY public/ /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