Skip to content

Commit fe8f876

Browse files
Refactor Dockerfile structure: consolidate backend and frontend configurations, remove redundant files, and clarify paths for improved clarity and maintainability.
1 parent cd14c45 commit fe8f876

4 files changed

Lines changed: 8 additions & 67 deletions

File tree

azure_custom.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ services:
1515
project: ./src/backend
1616
host: containerapp
1717
language: python
18+
docker:
19+
path: ../../docker/Backend.Dockerfile
20+
context: ../..
1821
frontend:
1922
project: ./src/frontend
2023
host: containerapp
2124
language: js
25+
docker:
26+
path: ../../docker/Frontend.Dockerfile
27+
context: ../..
2228

2329
infra:
2430
provider: bicep

docker/Backend.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ apt-get install -y libicu-dev
77
WORKDIR /app
88

99
# Copy only requirements first to leverage Docker cache
10-
COPY ../src/backend/requirements.txt .
10+
COPY src/backend/requirements.txt .
1111

1212
# Install dependencies
1313
RUN pip install --no-cache-dir -r requirements.txt
1414

1515
# Copy backend code
16-
COPY ../src/backend/ .
16+
COPY src/backend/ .
1717

1818
EXPOSE 8000
1919

src/backend/Dockerfile

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/frontend/Dockerfile

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)