File size: 619 Bytes
3750ba1 e252ab0 e7077fc 3750ba1 e7077fc 3750ba1 e252ab0 3750ba1 e252ab0 3750ba1 e252ab0 3750ba1 e252ab0 e7077fc e252ab0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
FROM python:3.10
# Install Java (default-jre-headless is a safe option) + other deps
RUN apt-get update && apt-get install -y \
default-jre-headless \
git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx \
curl fakeroot && \
rm -rf /var/lib/apt/lists/*
# Setup Node.js (if needed)
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs
# Python dependencies
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt
# Set workdir
WORKDIR /home/user/app
COPY . .
# App entrypoint
CMD ["python", "app.py"]
|