diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..974ef27 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +# Use the official Python image as a base +FROM python:3.9.20-alpine3.19 + +# Set the working directory inside the container +WORKDIR /app + +# Copy the contents of the 'App' folder to the working directory +COPY App/ /app + +# Copy the requirements file to the working directory +COPY requirements.txt /app + +# Install the dependencies from the requirements file +RUN pip install --no-cache-dir -r requirements.txt + +EXPOSE 5001 +# Command to run the application +CMD ["gunicorn", "--bind", "0.0.0.0:5001", "app:app"] diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..418d6d2 --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +docker build -t tsettaro/kursovaya-ris:latest . +docker push tsettaro/kursovaya-ris:latest \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 4e407bf..fc9471b 100644 Binary files a/requirements.txt and b/requirements.txt differ