Severian commited on
Commit
0ae370c
·
1 Parent(s): 9f4c1e4

Update Dockerfile for correct directory structure

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -10
Dockerfile CHANGED
@@ -20,17 +20,15 @@ RUN apk add --no-cache tzdata && \
20
  # ============================================
21
  FROM base AS web-builder
22
 
23
- WORKDIR /app/web
24
 
25
- # Copy package files first
26
- COPY web/package.json web/yarn.lock ./
27
 
28
- # Install dependencies
 
29
  RUN yarn install --frozen-lockfile --production=false
30
 
31
- # Copy web source
32
- COPY web/ .
33
-
34
  # Build with standalone output
35
  RUN yarn build
36
 
@@ -46,7 +44,10 @@ RUN apt-get update && \
46
  libgmp-dev libmpfr-dev libmpc-dev \
47
  && rm -rf /var/lib/apt/lists/*
48
 
49
- WORKDIR /app/api
 
 
 
50
 
51
  # Install poetry with specific version
52
  ENV POETRY_VERSION=1.8.3
@@ -59,8 +60,8 @@ ENV POETRY_CACHE_DIR=/tmp/poetry_cache \
59
  POETRY_VIRTUALENVS_CREATE=true \
60
  POETRY_REQUESTS_TIMEOUT=15
61
 
62
- # Copy and install Python dependencies
63
- COPY api/pyproject.toml api/poetry.lock ./
64
  RUN poetry install --sync --no-cache --no-root
65
 
66
  # ============================================
 
20
  # ============================================
21
  FROM base AS web-builder
22
 
23
+ WORKDIR /app
24
 
25
+ # Copy entire project first
26
+ COPY . .
27
 
28
+ # Navigate to web directory and install dependencies
29
+ WORKDIR /app/web
30
  RUN yarn install --frozen-lockfile --production=false
31
 
 
 
 
32
  # Build with standalone output
33
  RUN yarn build
34
 
 
44
  libgmp-dev libmpfr-dev libmpc-dev \
45
  && rm -rf /var/lib/apt/lists/*
46
 
47
+ WORKDIR /app
48
+
49
+ # Copy entire project
50
+ COPY . .
51
 
52
  # Install poetry with specific version
53
  ENV POETRY_VERSION=1.8.3
 
60
  POETRY_VIRTUALENVS_CREATE=true \
61
  POETRY_REQUESTS_TIMEOUT=15
62
 
63
+ # Install Python dependencies
64
+ WORKDIR /app/api
65
  RUN poetry install --sync --no-cache --no-root
66
 
67
  # ============================================