forked from colin/resume
2
0
Fork 0

Update docker/lucky-ddg/Dockerfile
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
colin 2025-02-09 14:34:39 -05:00
parent 8cbfa8a625
commit 48e3f5c0cb
1 changed files with 19 additions and 1 deletions

View File

@ -1,9 +1,27 @@
# Use the official Python image from Docker Hub
FROM python:3.9-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set working directory
WORKDIR /app
# Install Git
RUN apt-get update && apt-get install -y git
# Copy the requirements file into the container
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY . .
# Expose the Flask port
EXPOSE 5000
CMD ["python", "app.py"]
# Run the application
CMD ["python", "app.py"]