Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
McCloudS authored Feb 4, 2025
1 parent 16b5e63 commit 6e3c247
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \

# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir --prefix=/install -r requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt

# Copy application code
COPY . .
Expand All @@ -27,15 +27,16 @@ WORKDIR /subgen
COPY --from=builder /subgen/launcher.py .
COPY --from=builder /subgen/subgen.py .
COPY --from=builder /subgen/language_code.py .
COPY --from=builder /install/local/bin /usr/local/lib/python3.10/dist-packages
COPY --from=builder /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages

# Install runtime dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
python3 \
&& rm -rf /var/lib/apt/lists/*

ENV PYTHONUNBUFFERED=1
ENV PYTHONUNBUFFERED=1 \
PYTHONPATH=/usr/local/lib/python3.10/site-packages

# Set command to run the application
CMD ["python3", "launcher.py"]

0 comments on commit 6e3c247

Please sign in to comment.