zuehue commited on
Commit
084f878
·
verified ·
1 Parent(s): 74919fe

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -15
Dockerfile CHANGED
@@ -1,21 +1,17 @@
1
- # Use an official Python 3.10 slim base image
2
  FROM python:3.10-slim
3
 
4
- # Set environment variables for the bot token and chat ID
5
- ENV BOT_TOKEN=YOUR_BOT_TOKEN
6
- ENV CHAT_ID=YOUR_CHAT_ID
7
-
8
- # Install curl
9
- RUN apt-get update && apt-get install -y curl && apt-get clean && rm -rf /var/lib/apt/lists/*
10
-
11
- # Set the working directory in the container
12
  WORKDIR /app
13
 
14
- # Copy the shell script into the container
15
- COPY send_message.sh .
 
 
 
16
 
17
- # Make the shell script executable
18
- RUN chmod +x send_message.sh
19
 
20
- # Run the shell script
21
- CMD ["./send_message.sh"]
 
1
+ # Use a base image with Python and necessary tools installed
2
  FROM python:3.10-slim
3
 
4
+ # Set the working directory
 
 
 
 
 
 
 
5
  WORKDIR /app
6
 
7
+ # Copy your holehe script and requirements
8
+ COPY . /app
9
+
10
+ # Install any necessary dependencies (if any)
11
+ RUN pip install holehe flask requests # Adjust as needed
12
 
13
+ # Expose a port for the web app
14
+ EXPOSE 5000
15
 
16
+ # Command to run the web app
17
+ CMD ["python", "app.py"]