diff --git a/Dockerfile b/Dockerfile index 758f1de..9a86ac7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,5 +18,5 @@ WORKDIR /app RUN apk add --no-cache ca-certificates COPY --from=server_builder /app/main ./main COPY --from=server_builder /app/build ./build -EXPOSE 8181 +EXPOSE 3000 CMD ["./main"] diff --git a/server.ts b/server.ts deleted file mode 100644 index dc8bf6b..0000000 --- a/server.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { serve } from "bun"; - -serve({ - port: 3000, - fetch(req) { - const url = new URL(req.url); - let path = url.pathname; - - if (path === "/") path = "/index.html"; - - const file = Bun.file(`./build${path}`); - - return new Response(file); - }, -}); - -console.log("Frontend listening on :3000");