Skip to content

Commit 4529c1b

Browse files
committed
Update Dockerfile
1 parent 2201dae commit 4529c1b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
99
# Install dependencies
1010
RUN apt-get update && apt-get install -y gcc curl && rm -rf /var/lib/apt/lists/*
1111

12-
# Copy and install requirements
13-
COPY requirements.txt ttsfm-web/requirements.txt ./
14-
RUN pip install --no-cache-dir -r requirements.txt
15-
16-
# Copy source code
12+
# Copy source code first
1713
COPY ttsfm/ ./ttsfm/
1814
COPY ttsfm-web/ ./ttsfm-web/
1915
COPY pyproject.toml ./
16+
COPY requirements.txt ./
17+
18+
# Install the TTSFM package with web dependencies
19+
RUN pip install --no-cache-dir -e .[web]
2020

21-
# Install package
22-
RUN pip install -e .
21+
# Install additional web dependencies
22+
RUN pip install --no-cache-dir python-dotenv>=1.0.0
2323

2424
# Create non-root user
2525
RUN useradd --create-home ttsfm && chown -R ttsfm:ttsfm /app

0 commit comments

Comments
 (0)