dockefiles

This commit is contained in:
Alex
2023-02-24 17:04:37 +00:00
parent 8e496ca241
commit 5f70bf286a
2 changed files with 22 additions and 0 deletions

12
docker-compose.yaml Normal file
View File

@@ -0,0 +1,12 @@
version: "3.9"
services:
frontend:
build: ./frontend
ports:
- "5173:5173"
backend:
build: ./application
ports:
- "5001:5000"

10
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM node:18-alpine3.14
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 5173
CMD [ "npm", "run", "dev", "--" , "--host"]