fix dockerfile

This commit is contained in:
Rizky 2024-01-20 06:31:44 +07:00
parent 497b58920d
commit 203d02ca8f
1 changed files with 6 additions and 5 deletions

View File

@ -7,15 +7,16 @@ COPY . .
ARG NODE_VERSION=18
RUN apt-get update
RUN apt-get install -y curl unzip bash
RUN apt-get install -y curl unzip bash gnupg
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get -y install nodejs
RUN npm install -g pm2
RUN curl -fsSL https://bun.sh/install | bash -s "bun-v1.0.18"
RUN ln -s $HOME/.bun/bin/bun /usr/local/bin/bun
RUN curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n
RUN n $NODE_VERSION
RUN bun install -g pm2
RUN bun --version
RUN bun install
RUN bun run build