From 6420ade9e22e5706af6de67c1e36ffe919914712 Mon Sep 17 00:00:00 2001 From: "Muhamad H. Asadi" Date: Sat, 23 Sep 2023 00:27:26 +0330 Subject: [PATCH] moved --- Dockerfile | 22 ---------------------- requirements.txt | 3 --- 2 files changed, 25 deletions(-) delete mode 100644 Dockerfile delete mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 78774cf..0000000 --- a/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -# Use the official Python image with Python 3.10 -FROM python:3.10-slim-bookworm - -# Set the working directory to /app -WORKDIR /app - -# Copy requirements.txt into the container at /app -COPY requirements.txt /app/ - -# Install any needed packages specified in requirements.txt -RUN pip install --trusted-host pypi.python.org -r requirements.txt - -# Copy server file -COPY server/server_api.py /app/ -# Expose port 5000 for the Flask app to listen on -EXPOSE 5000 - -# Define environment variable for Flask to run in production mode -ENV FLASK_ENV=production - -# Run the Flask app -CMD ["python", "server_api.py"] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index d95f5df..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -flask -flask_sqlalchemy -pymysql \ No newline at end of file