forked from BlurpleOG/File-store-Pro
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (38 loc) · 1.26 KB
/
Copy pathDockerfile
File metadata and controls
48 lines (38 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# ================================================
# File-Store-Pro — Dockerfile
# Made by: botifyx-bots | @BotifyX_Pro_Botz
# Supports: Heroku · Render · VPS · Local
# ------------------------------------------------
# Before deploying, edit config.py with your values
# ================================================
FROM python:3.11-slim-bullseye
LABEL maintainer="botifyx-bots"
LABEL description="File-Store-Pro — Advanced Telegram File Share Bot"
LABEL version="2.0.0"
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
WORKDIR /app
# System dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
g++ \
libffi-dev \
libssl-dev \
curl \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip \
&& pip install -r requirements.txt
# Copy full project (includes your edited config.py)
COPY . .
# Expose port defined in config.py (default 5010)
EXPOSE 5010
# Health check — hits Flask's "/" route
HEALTHCHECK --interval=30s --timeout=10s --start-period=15s --retries=3 \
CMD curl -f http://localhost:5010/ || exit 1
CMD ["python", "main.py"]