Update Dockerfile
Browse files- Dockerfile +11 -15
Dockerfile
CHANGED
@@ -1,21 +1,17 @@
|
|
1 |
-
# Use
|
2 |
FROM python:3.10-slim
|
3 |
|
4 |
-
# Set
|
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
|
15 |
-
COPY
|
|
|
|
|
|
|
16 |
|
17 |
-
#
|
18 |
-
|
19 |
|
20 |
-
#
|
21 |
-
CMD ["
|
|
|
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"]
|