diff --git a/.idea/misc.xml b/.idea/misc.xml index 8780e863..1ec64b08 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/Dockerfile b/Dockerfile index 8d57da47..b8ce91f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM oven/bun:1 AS builder WORKDIR /app -# Копируем только файлы, необходимые для установки зависимостей +# Копируем только нужное для установки COPY package.json bun.lock ./ COPY turbo.json ./ COPY biome.jsonc ./ @@ -13,8 +13,16 @@ COPY packages ./packages COPY tooling ./tooling COPY apps ./apps -# Устанавливаем зависимости и собираем +# Устанавливаем зависимости RUN bun install --frozen-lockfile + +# Исправляем путь в globals.css (заменяем @/ на ../) +RUN sed -i 's|@/styles/elevation.css|../styles/elevation.css|g' apps/editor/app/globals.css + +# Создаём символическую ссылку, чтобы папка styles была доступна из apps/editor +RUN ln -s /app/styles /app/apps/editor/styles + +# Собираем RUN bun run build # ---- Продакшен ---- @@ -33,10 +41,4 @@ COPY --from=builder /app/bun.lock ./ WORKDIR /app/apps/editor EXPOSE 3002 - -# Опционально: добавить healthcheck (если нужен) -# RUN apk add --no-cache curl -# HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \ -# CMD curl -f http://localhost:3002 || exit 1 - CMD ["bun", "run", "start"] \ No newline at end of file