Tiresias/web/Dockerfile

22 lines
314 B
Docker

# Base Python image
FROM python:3.10-slim
# Set workdir
WORKDIR /app
# Install dependencies
RUN pip install --no-cache-dir flask redis
# Copy files into the container
COPY templates /app/templates
COPY web.py /app/web.py
# Expose port for Flask app
EXPOSE 8080
# Run the Flask app
CMD ["python", "web.py"]