This repository has been archived on 2026-05-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
imagerepo/dockerfile
T
2025-07-28 21:57:49 +00:00

31 lines
597 B
Docker

# Dockerfile
FROM python:slim
# Set work directory
WORKDIR /app
# Install PostgreSQL client
RUN apt-get update && \
apt-get install -y postgresql-client && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Copy project files
COPY . .
# Install dependencies
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy and prepare entrypoint script
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Set environment variables
ENV FLASK_APP=run.py
ENV FLASK_RUN_HOST=0.0.0.0
# Expose port
EXPOSE 5000
# Use entrypoint script
ENTRYPOINT ["/entrypoint.sh"]