Ajout de vuejs
This commit is contained in:
11
vuejs/Dockerfile
Executable file
11
vuejs/Dockerfile
Executable file
@@ -0,0 +1,11 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
13
vuejs/docker-compose.yml
Normal file
13
vuejs/docker-compose.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
services:
|
||||
vue_app:
|
||||
container_name: nom_container_container
|
||||
restart: unless-stopped
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- ${EXTERNAL_PORT}:${INTERNAL_PORT}
|
||||
volumes:
|
||||
- .:/app
|
||||
- /app/node_modules
|
||||
command: "npm run dev -- --host --port ${INTERNAL_PORT}"
|
||||
Reference in New Issue
Block a user