Youtube_Dockor / Dockerfile
Rivalcoder
Add
cbf58a5
raw
history blame
607 Bytes
FROM python:3.10-slim
# Install Chrome
RUN apt-get update && apt-get install -y wget gnupg unzip curl \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' \
&& apt-get update \
&& apt-get install -y google-chrome-stable
# Install dependencies
COPY requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip install --no-cache-dir -r requirements.txt
# Copy app code
COPY app.py /app/app.py
# Run the app
CMD ["python", "app.py"]