Upload files to "/"
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
# Use the official Python image
|
||||
FROM python:3.10-slim
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the bot script and requirements file to the working directory
|
||||
COPY bot.py ./
|
||||
COPY requirements.txt ./
|
||||
|
||||
|
||||
# Install dependencies
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Expose no ports, but needed for convention
|
||||
EXPOSE 8000
|
||||
|
||||
# Command to run the bot
|
||||
CMD ["python", "bot.py"]
|
||||
Reference in New Issue
Block a user