Mark Duppenthaler
Test docker
9a03fcf
raw
history blame contribute delete
679 Bytes
# 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"]