This commit is contained in:
Rizky 2024-01-21 13:07:38 +07:00
parent 699ac1b418
commit e549d7111f
2 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# use the official ubuntu image # use the official ubuntu image
FROM oven/bun:1.0.18-debian as base FROM oven/bun:1.0.18-debian as base
WORKDIR /usr/src/prasi
COPY . .
EXPOSE 4550 EXPOSE 4550
CMD [ "bun run coba.ts" ] CMD [ "bun run coba.ts" ]

View File

@ -1,8 +1,11 @@
Bun.serve({ Bun.serve({
port: 4550, port: 4550,
fetch(request, server) { fetch(request, server) {
return new Response("Hello World " + process.env["DATABASE_URL"], { return new Response(
status: 200, "Hello World\n\n" + process.env["DATABASE_URL"] + "\n\n" + process.cwd(),
}); {
status: 200,
}
);
}, },
}); });