This commit is contained in:
Rizky 2024-01-21 18:16:05 +07:00
parent dd01292da0
commit bc7c91369d
2 changed files with 4 additions and 9 deletions

View File

@ -12,6 +12,6 @@ RUN apt-get install nodejs -yq
RUN npm i -g @parcel/watcher node-gyp-build-optional-packages node-gyp RUN npm i -g @parcel/watcher node-gyp-build-optional-packages node-gyp
EXPOSE 4550/tcp EXPOSE 3000/tcp
CMD [ "bun", "run", "docker.ts" ] CMD [ "bun", "run", "docker.ts" ]

View File

@ -1,8 +1,3 @@
Bun.serve({ import { spawnSync } from "child_process";
port: 3000,
fetch(request, server) { spawnSync("bun run prod", { cwd: "/app/prasi/repo" });
return new Response("Hello World\n\n" + process.cwd(), {
status: 200,
});
},
});