diff --git a/docker/docker-compose.dev.yml b/docker/docker-compose.dev.yml index 7742b66..7c280b7 100644 --- a/docker/docker-compose.dev.yml +++ b/docker/docker-compose.dev.yml @@ -48,8 +48,7 @@ services: - CHOKIDAR_USEPOLLING=true - WATCHPACK_POLLING=true volumes: - - ../frontend/src:/app/src - - ../frontend/src/components:/app/src/components + - ../frontend/:/app/frontend/ ports: - 8081:8081 diff --git a/frontend/Dockerfile b/frontend/Dockerfile index c704d80..747e042 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -78,13 +78,11 @@ FROM base AS development WORKDIR /app -COPY --from=deps /app/node_modules ./node_modules -COPY --from=deps /app/package.json ./package.json -COPY --from=deps /app/package-lock.json ./package-lock.json -COPY ./widget ./widget -COPY ./frontend ./frontend -COPY --from=deps /app/widget/node_modules ./widget/node_modules -COPY --from=deps /app/frontend/node_modules ./frontend/node_modules +COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./ + +COPY . . + +RUN npm install ENV NODE_ENV=development ENV CHOKIDAR_USEPOLLING=true