RIS in Docker

This commit is contained in:
2024-11-06 01:08:21 +03:00
parent c4ad849fb3
commit b5cd97d38c
3 changed files with 25 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -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 ["python", "app.py"]

3
requirements.txt Normal file
View File

@@ -0,0 +1,3 @@
cryptography==43.0.3
Flask==3.0.3
PyMySQL==1.1.1

4
start.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
docker build -t ris:latest .
docker run -d -p 5001:5001 ris