feat(Docker Image): Add a docker image that uses bun for the server for testing later
This commit is contained in:
parent
cdf2653993
commit
62955a7837
1 changed files with 24 additions and 0 deletions
24
Dockerfile-bun
Normal file
24
Dockerfile-bun
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue