aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile14
-rw-r--r--README.md9
2 files changed, 13 insertions, 10 deletions
diff --git a/Dockerfile b/Dockerfile
index de7d651..4b60ddd 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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" ]
diff --git a/README.md b/README.md
index a98aa5a..54cae47 100644
--- a/README.md
+++ b/README.md
@@ -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`