workflow(docker): add development dockerfile

run docker compose -f docker-compose.dev.yaml up to run
the development server on localhost:4000
This commit is contained in:
Mohamed Usman 2024-05-17 22:30:08 +05:00
parent 01ab895667
commit 7a0d401b5d
2 changed files with 23 additions and 0 deletions

13
Dockerfile.dev Normal file
View File

@ -0,0 +1,13 @@
FROM node:18.0.0
WORKDIR /app
RUN npm install -g pnpm@8.1.0
COPY package.json .
RUN pnpm install
COPY . .
CMD [ "pnpm", "run", "dev" ]

10
docker-compose.dev.yaml Normal file
View File

@ -0,0 +1,10 @@
services:
vue-element-plus-admin:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "4000:4000"
volumes:
- /app/node_modules
- .:/app