| FROM debian:stable |
|
|
| ENV DEBIAN_FRONTEND=noninteractive |
|
|
| |
| RUN apt-get update && \ |
| apt-get install -y wget gnupg git python3 python3-pip python3-venv unzip curl procps && \ |
| rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN wget -O- https://apt.corretto.aws/corretto.key | gpg --dearmor > /usr/share/keyrings/corretto-archive-keyring.gpg && \ |
| echo "deb [signed-by=/usr/share/keyrings/corretto-archive-keyring.gpg] https://apt.corretto.aws stable main" > /etc/apt/sources.list.d/corretto.list && \ |
| apt-get update && \ |
| apt-get install -y java-21-amazon-corretto-jdk && \ |
| rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN pip3 install --no-cache-dir --break-system-packages gdown |
|
|
| |
| WORKDIR /app |
|
|
| |
| COPY . /app |
|
|
| |
| RUN chmod -R 777 /app && \ |
| chmod +x /app/start.sh |
|
|
| |
| EXPOSE 7860 |
|
|
| |
| CMD ["sh", "start.sh"] |