written code

This commit is contained in:
Prokop Viktorín
2023-09-17 17:58:10 +02:00
parent 9bbd95c7dd
commit b921e15495
46 changed files with 459 additions and 27838 deletions

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
# Use an official Python runtime as a parent image
FROM python:3.11.5-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set the working directory in the container
WORKDIR /app/src/
# Install any necessary dependencies
COPY requirements.txt /app/src/
RUN pip install --no-cache-dir -r requirements.txt
# Copy the Flask app source code into the container
COPY . /app/
# Expose the port your Flask app will run on
EXPOSE 5000
# Define the command to run your Flask app
CMD ["python", "app.py"]