File size: 679 Bytes
9a03fcf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Development Dockerfile for the backend
FROM python:3.10-slim@sha256:b85dcf7840589a82e90a07d4cb9e85305eac7a583a28ae629a3718ba05b7bdca

WORKDIR /app

# Install dependencies
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of the application
COPY . .

# Create symbolic links for data and examples directories
# These will be overridden by volume mounts when running the container
RUN mkdir -p /app/data /app/examples

# Expose the Flask port
EXPOSE 5000

# Environment variables
ENV FLASK_APP=app.py
ENV FLASK_ENV=development
ENV PYTHONUNBUFFERED=1

# Command to run the Flask development server
CMD ["flask", "run", "--host=0.0.0.0"]