DiscoGPT/Dockerfile

21 lines
451 B
Docker
Raw Permalink Normal View History

2024-05-31 04:23:06 +00:00
# Use the official Python image from the Docker Hub
FROM python:3.9-slim
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Set the working directory
WORKDIR /app
# Copy the requirements file to the working directory
COPY requirements.txt .
# Install the dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code to the working directory
COPY . .
# Command to run the bot
CMD ["python", "bot.py"]