some change of locations

This commit is contained in:
2023-09-23 00:26:47 +03:30
parent 1ade781ba6
commit d60d4d7c24
5 changed files with 69 additions and 0 deletions

22
server/Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
# 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 src/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 src/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"]