Update Dockerfile

This commit is contained in:
McCloudS
2025-02-04 00:38:58 -07:00
committed by GitHub
parent 7a6bd076c1
commit dc5011ce82

View File

@@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# Copy requirements and install Python dependencies # Copy requirements and install Python dependencies
COPY requirements.txt . COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
# Copy application code # Copy application code
COPY . . COPY . .
@@ -27,7 +27,7 @@ WORKDIR /subgen
COPY --from=builder /subgen/launcher.py . COPY --from=builder /subgen/launcher.py .
COPY --from=builder /subgen/subgen.py . COPY --from=builder /subgen/subgen.py .
COPY --from=builder /subgen/language_code.py . COPY --from=builder /subgen/language_code.py .
COPY --from=builder /usr /usr COPY --from=builder /usr/local/lib/python3.10/dist-packages /usr/local/lib/python3.10/dist-packages
# Install runtime dependencies # Install runtime dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -35,8 +35,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \ python3 \
&& rm -rf /var/lib/apt/lists/* && 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 # Set command to run the application
CMD ["python3", "launcher.py"] CMD ["python3", "launcher.py"]