Replace submodules with full folder contents
This commit is contained in:
23
Machine-Backend/Dockerfile
Normal file
23
Machine-Backend/Dockerfile
Normal file
@ -0,0 +1,23 @@
|
||||
# Backend Dockerfile
|
||||
FROM python:3.10-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies (for mysqlclient or pymysql)
|
||||
RUN apt-get update && apt-get install -y gcc python3-dev default-libmysqlclient-dev && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy dependencies
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy project files
|
||||
COPY . .
|
||||
|
||||
# Expose Flask port
|
||||
EXPOSE 5000
|
||||
|
||||
# Environment (set via docker-compose)
|
||||
ENV FLASK_ENV=production
|
||||
|
||||
# Start the Flask app
|
||||
CMD ["python", "run.py"]
|
||||
Reference in New Issue
Block a user