dailyoverview/Dockerfile

21 lines
549 B
Docker

# Use the official Python image from the Docker Hub
FROM python:3.8-slim
# Set the working directory
WORKDIR /app
# Copy the current directory contents into the container
COPY . /app
# Ensure instance directory exists and is writable
RUN mkdir -p /app/instance && chmod -R 777 /app/instance
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Make port 5000 available to the world outside this container
EXPOSE 5005
# Run app.py when the container launches
CMD ["python", "app.py"]