diff --git a/Dockerfile b/Dockerfile index ecaf5579..1d2d7d71 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,6 @@ RUN apt-get install nodejs -yq RUN npm i -g @parcel/watcher node-gyp-build-optional-packages node-gyp -EXPOSE 4550/tcp +EXPOSE 3000/tcp CMD [ "bun", "run", "docker.ts" ] diff --git a/docker.ts b/docker.ts index edffac86..10a26db2 100644 --- a/docker.ts +++ b/docker.ts @@ -1,8 +1,3 @@ -Bun.serve({ - port: 3000, - fetch(request, server) { - return new Response("Hello World\n\n" + process.cwd(), { - status: 200, - }); - }, -}); +import { spawnSync } from "child_process"; + +spawnSync("bun run prod", { cwd: "/app/prasi/repo" });