Files
NHL-Scoreboard/Dockerfile
2024-02-19 02:27:31 -05:00

22 lines
492 B
Docker

# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set the working directory in the container
WORKDIR /
# Copy the current directory contents into the container at /app
COPY . /
# Install any needed dependencies specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Expose the Flask port
EXPOSE 2897
# Run the Flask application
CMD ["python", "run.py"]