commit 38aaaa5834b9bdf4818f99e1f7ccb030c6b5f654 Author: Timothy Kim Date: Fri Feb 27 14:45:53 2026 -0500 init commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..86206c6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM nginx:alpine + +# Remove default content +RUN rm -rf /usr/share/nginx/html/* + +# static site +COPY static /usr/share/nginx/html + +# a custom nginx config +COPY nginx.conf /etc/nginx/conf.d/default.conf + +EXPOSE 80 + diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..968505f --- /dev/null +++ b/nginx.conf @@ -0,0 +1,16 @@ +server { + listen 80; + root /usr/share/nginx/html; + index index.html; + + # Clean URLs — serve index.html for directories + location / { + try_files $uri $uri/ /index.html; + } + + # Cache static assets aggressively + location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2)$ { + expires 1y; + add_header Cache-Control "public, immutable"; + } +} diff --git a/static/index.html b/static/index.html new file mode 100644 index 0000000..921fe89 --- /dev/null +++ b/static/index.html @@ -0,0 +1,9 @@ + + + + Timothy Kim + + +

Hello, World!

+ +