Skip to content

Commit 384162a

Browse files
eprifticlaude
andcommitted
Fix Docker build paths and add predomics project group
- Fix COPY paths to use predomicsapp-web/ prefix (build context is parent dir) - Fix static files path: backend/app/static/ (relative to app package) - Add project name "predomics" and container_name "predomics-web" - Add .dockerignore in parent to exclude unneeded repos from context - Add backend/data/ to .gitignore for runtime data Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 005739a commit 384162a

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

‎Dockerfile‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
# =============================================================================
44
FROM node:20-alpine AS frontend-builder
55
WORKDIR /app/frontend
6-
COPY frontend/package*.json ./
6+
COPY predomicsapp-web/frontend/package*.json ./
77
RUN npm ci
8-
COPY frontend/ ./
8+
COPY predomicsapp-web/frontend/ ./
99
RUN npm run build
1010

1111
# =============================================================================
@@ -41,17 +41,17 @@ COPY --from=rust-builder /build/wheels/*.whl /tmp/wheels/
4141
RUN pip install --no-cache-dir /tmp/wheels/*.whl && rm -rf /tmp/wheels
4242

4343
# Install Python backend dependencies
44-
COPY backend/pyproject.toml backend/
44+
COPY predomicsapp-web/backend/pyproject.toml backend/
4545
RUN pip install --no-cache-dir backend/
4646

4747
# Copy backend code
48-
COPY backend/ backend/
48+
COPY predomicsapp-web/backend/ backend/
4949

5050
# Copy built frontend into static directory
51-
COPY --from=frontend-builder /app/frontend/dist backend/static/
51+
COPY --from=frontend-builder /app/frontend/dist backend/app/static/
5252

53-
# Copy sample data
54-
COPY data/qin2014_cirrhosis/ data/qin2014_cirrhosis/
53+
# Copy demo dataset
54+
COPY predomicsapp-web/data/qin2014_cirrhosis/ data/qin2014_cirrhosis/
5555

5656
# Create directories for runtime data
5757
RUN mkdir -p data/uploads data/projects

‎docker-compose.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
name: predomics
2+
13
services:
24
app:
5+
container_name: predomics-web
36
build:
47
context: ..
58
dockerfile: predomicsapp-web/Dockerfile

0 commit comments

Comments
 (0)