tg-docker / Dockerfile
lelafav502's picture
Create Dockerfile
e0aa141 verified
raw
history blame contribute delete
468 Bytes
# Use the official Python image from Docker Hub
FROM python:3.10-slim
# Set the working directory inside the container
WORKDIR /app
# Copy the local requirements.txt file to the container
COPY requirements.txt /app/
# Install any needed dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of your application to the container
COPY . /app/
# Set the command to run your bot (replace bot.py with your main file)
CMD ["python", "bot.py"]