changed their locations

Changes to be committed:
	deleted:    docker/Dockerfile
	deleted:    docker/docker-compose.yml
This commit is contained in:
2023-09-21 11:14:45 +03:30
parent bd9ac2f3bf
commit d54a2be28f
2 changed files with 0 additions and 43 deletions

View File

@@ -1,20 +0,0 @@
# Use the official Python image with Python 3.10
FROM python:3.10
# Set the working directory to /app
WORKDIR /app
# Copy the server files and requirements.txt into the container at /app
COPY ../server/ ../requirements.txt /app/
# Install any needed packages specified in requirements.txt
RUN pip install --trusted-host pypi.python.org -r requirements.txt
# 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"]

View File

@@ -1,23 +0,0 @@
version: '3'
services:
db:
image: mariadb:latest
container_name: mariadb-container
env_file:
- .env
ports:
- "3306:3306" # Map MariaDB port to host if needed
volumes:
- ./db:/var/lib/mysql # Mount a volume for MariaDB data
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "5000:5000"
env_file:
- .env
depends_on:
- db