diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d08763d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ + +FROM oven/bun:1 as build +WORKDIR /app + +COPY package.json . +RUN bun i + +COPY . . + +RUN bun run build + +# Run +FROM oven/bun:1 +WORKDIR /app + +COPY --from=build /app/.output /app/.output + +EXPOSE 3000 +CMD [ "bun", ".output/server/index.mjs" ] \ No newline at end of file diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..2a25099 --- /dev/null +++ b/compose.yml @@ -0,0 +1,6 @@ +version: "3" +services: + my-app: + build: . + ports: + - "3000:3000" \ No newline at end of file