diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7a81091 --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..79fd959 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,11 @@ +server { + listen 80; + server_name _; + + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ /index.html; + } +} diff --git a/nixpacks.toml b/nixpacks.toml index 6917e14..4fd142b 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -2,4 +2,4 @@ cmds = ["bun install --frozen-lockfile"] [phases.build] -cmds = ["bunx vite build"] +cmds = ["bunx --bun vite build"] \ No newline at end of file diff --git a/src/components/ui/Input.tsx b/src/components/ui/input.tsx similarity index 100% rename from src/components/ui/Input.tsx rename to src/components/ui/input.tsx