From 5f70bf286a204ef23e948dadc924cb2295b2da3a Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 24 Feb 2023 17:04:37 +0000 Subject: [PATCH] dockefiles --- docker-compose.yaml | 12 ++++++++++++ frontend/Dockerfile | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 docker-compose.yaml create mode 100644 frontend/Dockerfile diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 00000000..cd54917d --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,12 @@ +version: "3.9" + +services: + frontend: + build: ./frontend + ports: + - "5173:5173" + + backend: + build: ./application + ports: + - "5001:5000" diff --git a/frontend/Dockerfile b/frontend/Dockerfile new file mode 100644 index 00000000..241c186d --- /dev/null +++ b/frontend/Dockerfile @@ -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"]