1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-04-05 11:18:42 +08:00

Merge e7c2b6c4530559ebaaaf5c5e912ddf4672f36bb2 into 6858a9ad67483025f6a9432a926beb9327037be3

This commit is contained in:
Edwin Betancourt 2024-11-13 15:08:55 +08:00 committed by GitHub
commit fd87fde430
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 87 additions and 0 deletions

24
.dockerignore Normal file
View File

@ -0,0 +1,24 @@
.DS_Store
node_modules/
vendor/
dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
**/*.log
tests/**/coverage/
tests/e2e/reports
selenium-debug.log
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.local
package-lock.json
yarn.lock

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM node:12-alpine
# Create app directory
WORKDIR /usr/app
# Copy project files
COPY . ./
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
RUN npm install \
&& npm run build:prod
# Build state files
# Start builded application
CMD npm run preview

View File

@ -193,6 +193,13 @@ npm run lint
npm run lint -- --fix
```
## Contenedor Docker
```bash
# requiere permisos de superusuario del sistema operativo ('su' o 'sudo')
docker-componer up
```
Vaya a [Documentación](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) para mayor información
## Registro de Cambios

View File

@ -189,6 +189,13 @@ npm run lint
npm run lint -- --fix
```
## Dockerコンテナ
```bash
#オペレーティングシステムのスーパーユーザー権限が必要( 'su'または 'sudo'
docker-compose up
```
詳細は [Documentation](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) を参照してください。
## Changelog

View File

@ -208,6 +208,13 @@ npm run lint
npm run lint -- --fix
```
## Docker Container
```bash
# requires superuser permissions of the operating system ('su' or 'sudo')
docker-compose up
```
Refer to [Documentation](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) for more information
## Changelog

View File

@ -226,6 +226,13 @@ npm run lint
npm run lint -- --fix
```
## Docker容器
```bash
# 需要操作系统的超级用户权限(“ su”或“ sudo”
docker-compose up
```
更多信息请参考 [使用文档](https://panjiachen.github.io/vue-element-admin-site/zh/)
## Changelog

18
docker-compose.yaml Normal file
View File

@ -0,0 +1,18 @@
version: '3.7'
services:
web-client:
build:
context: .
dockerfile: ./Dockerfile
container_name: vue-element-admin
network_mode: bridge
volumes:
- /usr/app/
- /usr/app/node_modules
labels:
- app=vue-element-admin
stdin_open: true
tty: true
ports:
- 9526:9526 # Prod