20 lines
542 B
Docker
20 lines
542 B
Docker
FROM nginx:alpine
|
|
|
|
COPY index.html /usr/share/nginx/html/index.html
|
|
COPY anime.umd.min.js /usr/share/nginx/html/anime.umd.min.js
|
|
|
|
RUN printf 'server {\n\
|
|
listen 80;\n\
|
|
server_name _;\n\
|
|
root /usr/share/nginx/html;\n\
|
|
index index.html;\n\
|
|
gzip on;\n\
|
|
gzip_types text/plain text/css application/javascript text/html application/json;\n\
|
|
location / {\n\
|
|
try_files $uri $uri/ /index.html;\n\
|
|
add_header Cache-Control "public, max-age=3600";\n\
|
|
}\n\
|
|
}\n' > /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 80
|