Files
Jarvis/Dockerfile
MrZaiko a0833b818b
All checks were successful
Build and Deploy / build (push) Successful in 2m8s
Better env variables
2025-04-20 16:16:54 +02:00

25 lines
532 B
Docker

# Use an official Python base image
FROM python:3.11-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set working directory inside the container
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy bot source code
COPY . .
# Run the bot
CMD ["python", "main.py"]