diff options
| -rw-r--r-- | Dockerfile | 14 | ||||
| -rw-r--r-- | README.md | 9 |
2 files changed, 13 insertions, 10 deletions
@@ -1,8 +1,14 @@ -FROM node:14 +FROM oven/bun:1 WORKDIR /usr/src/app -COPY package*.json ./ -RUN npm install + +RUN bun install COPY . . -CMD ["npm", "start"] +ENV NODE_ENV=production +RUN bun test +RUN bun run build +# run the app +USER bun +EXPOSE 8080/tcp +ENTRYPOINT [ "bun", "run", "start" ] @@ -7,17 +7,14 @@ Link to the client in this repo: <http://web.aceattorneyonline.com/> ## Project Setup -- Install [Node JS](https://nodejs.org/en/) -- Install nvm | [Windows](https://github.com/coreybutler/nvm-windows) , [Linux](https://github.com/nvm-sh/nvm) +- Install [Bun](https://bun.com/) ## Running Locally -1. `nvm install && nvm use` -2. `npm install` -3. `npm run start` +1. `bun install` +2. `bun run start` ## Running with Docker `docker build -t webao .` - `docker run -d -it -p 8080:8080 webao` |
