From 62955a783749398f3585c1a2c1075e2b59952cc4 Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Fri, 20 Dec 2024 21:29:08 +1100 Subject: [PATCH] feat(Docker Image): Add a docker image that uses bun for the server for testing later --- Dockerfile-bun | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Dockerfile-bun diff --git a/Dockerfile-bun b/Dockerfile-bun new file mode 100644 index 0000000..c242f00 --- /dev/null +++ b/Dockerfile-bun @@ -0,0 +1,24 @@ +FROM node:lts AS runtime +WORKDIR /app +COPY package.json pnpm-lock.yaml ./ +RUN npm install -g pnpm +RUN npm install -g bun + +RUN pnpm install --shamefully-hoist + + +COPY . . + +RUN apt-get update -y +RUN apt-get install -y jpegoptim + +RUN wget https://github.com/shssoichiro/oxipng/releases/download/v9.1.3/oxipng_9.1.3-1_amd64.deb +RUN apt-get install -y ./oxipng_9.1.3-1_amd64.deb +RUN rm ./oxipng_9.1.3-1_amd64.deb + +RUN pnpm run build + +ENV HOST=0.0.0.0 +ENV PORT=4321 +EXPOSE 4321 +CMD bun ./dist/server/entry.mjs