init commit

This commit is contained in:
Timothy Kim
2026-02-27 14:45:53 -05:00
commit 38aaaa5834
3 changed files with 38 additions and 0 deletions
+13
View File
@@ -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
+16
View File
@@ -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";
}
}
+9
View File
@@ -0,0 +1,9 @@
<!doctype html>
<html>
<head>
<title>Timothy Kim</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>