From 6d3820dc60d9d549158abc93b7b2192079840530 Mon Sep 17 00:00:00 2001 From: VovaBas04 Date: Sun, 1 Dec 2024 13:01:47 +0300 Subject: [PATCH] i think that its last fix but I can wrong --- db/Dockerfile | 2 +- frontend/.env | 2 ++ frontend/Dockerfile | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 frontend/.env diff --git a/db/Dockerfile b/db/Dockerfile index 4eca1f3..1f79c1b 100644 --- a/db/Dockerfile +++ b/db/Dockerfile @@ -1,4 +1,4 @@ FROM mongo:5.0.25 WORKDIR / -COPY init.js . +COPY init.js /docker-entrypoint-initdb.d/ CMD ["mongod", "--port", "27017"] diff --git a/frontend/.env b/frontend/.env new file mode 100644 index 0000000..66b8965 --- /dev/null +++ b/frontend/.env @@ -0,0 +1,2 @@ +REACT_APP_API_URL=http://localhost:3000 + diff --git a/frontend/Dockerfile b/frontend/Dockerfile index ee5abc6..acbf03f 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,5 +1,5 @@ FROM node:20.18.0-alpine -WORKDIR /app +WORKDIR / COPY package.json . RUN npm install COPY . .