Ajout de vuejs

This commit is contained in:
2024-10-25 23:36:20 +02:00
parent 65eebd60e3
commit 619d3929cd
2 changed files with 24 additions and 0 deletions

11
vuejs/Dockerfile Executable file
View 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
View 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}"