Files
screw-bardo/Dockerfile
2025-01-07 15:42:44 -05:00

31 lines
658 B
Docker

# Use an official Python runtime as a parent image
FROM python:3.11-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Set work directory
WORKDIR /app
# Install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY . /app
# Make start.sh executable
RUN chmod +x /app/start.sh
# Expose the port the app runs on
EXPOSE 1986
# Specify the entrypoint script
ENTRYPOINT ["/app/start.sh"]