This commit is contained in:
2026-01-06 16:33:28 -06:00
4 changed files with 22 additions and 1 deletions

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM oven/bun:1 AS build
WORKDIR /app
COPY . .
RUN bun install --frozen-lockfile
RUN bunx --bun vite build
FROM nginx:alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80

11
nginx.conf Normal file
View File

@@ -0,0 +1,11 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}

View File

@@ -2,4 +2,4 @@
cmds = ["bun install --frozen-lockfile"]
[phases.build]
cmds = ["bunx vite build"]
cmds = ["bunx --bun vite build"]