Merge pull request #470 from emyu10/workflow/docker

workflow(docker): add development dockerfile
This commit is contained in:
Archer 2024-05-20 09:20:59 +08:00 committed by GitHub
commit 030328a80f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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