From e41ee33d9c18c8a1fd8ab4ac2c146e53ad69481e Mon Sep 17 00:00:00 2001
From: Bing Chilling <bingchilling@autistici.org>
Date: Thu, 29 Feb 2024 03:33:19 +0000
Subject: [PATCH] Update Dockerfile

---
 Dockerfile | 60 +++++++++++++++++++++++++-----------------------------
 1 file changed, 28 insertions(+), 32 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 1e00a69..9893922 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,32 +1,28 @@
-# Use the official Python image as the base image
-FROM python:3.11-slim
-
-
-# Install the patch utility
-RUN apt-get update && apt-get install -y patch
-
-
-# Set the working directory to /app
-WORKDIR /app
-
-
-# Copy the local requirements.txt file to the container
-COPY requirements.txt .
-
-
-# Install the Python dependencies
-RUN pip install -r requirements.txt
-
-# Copy the aiotieba-handle-exception-expose.patch file to the container
-COPY aiotieba-handle-exception-expose.patch .
-
-
-# Expose port 8886
-EXPOSE 8886
-
-
-# Copy the local code to the container
-COPY . .
-
-# Run the Python script with Uvicorn, binding to all available network interfaces
-CMD ["gunicorn", "app:proxified", "--max-requests", "50", "--worker-class", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8886"]
+# Use the official Python image as the base image
+FROM python:3.11-slim
+
+
+# Install the patch utility
+RUN apt-get update && apt-get install -y patch
+
+
+# Set the working directory to /app
+WORKDIR /app
+
+
+# Copy the local requirements.txt file to the container
+COPY requirements.txt .
+
+
+# Install the Python dependencies
+RUN pip install -r requirements.txt
+
+# Expose port 8886
+EXPOSE 8886
+
+
+# Copy the local code to the container
+COPY . .
+
+# Run the Python script with Uvicorn, binding to all available network interfaces
+CMD ["gunicorn", "app:proxified", "--max-requests", "50", "--worker-class", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8886"]
-- 
GitLab