This commit is contained in:
Rizky 2024-01-21 13:05:41 +07:00
parent 7eda056cfe
commit 699ac1b418
2 changed files with 9 additions and 9 deletions

View File

@ -2,13 +2,5 @@
FROM oven/bun:1.0.18-debian as base
WORKDIR /usr/src/prasi
COPY . .
RUN apt-get update
RUN apt-get install curl gnupg zip unzip -yq
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash
RUN apt-get install nodejs -yq
RUN npm i -g node-gyp-build-optional-packages @parcel/watcher
RUN bun install
EXPOSE 4550
CMD [ "bun run prod" ]
CMD [ "bun run coba.ts" ]

8
coba.ts Normal file
View File

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