forked from Rexxt/papillon-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (30 loc) · 756 Bytes
/
Dockerfile
File metadata and controls
35 lines (30 loc) · 756 Bytes
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
FROM python:3.11.3-alpine
# Set environment variable
ENV CRON "*/25 * * * *"
# Install dependencies
RUN apk update && \
apk add --no-cache \
curl \
git \
wget \
bash \
build-base \
libffi-dev \
openssl-dev \
sqlite-dev \
tk-dev \
gdbm-dev \
libc-dev \
bzip2-dev \
zlib-dev \
nodejs \
npm
# Install pm2
RUN npm install -g pm2
# Install Papillon
RUN mkdir -p /hosting/papillon && \
curl -o /hosting/papillon/start.sh https://raw.githubusercontent.com/PapillonApp/papillon-python/development/papillon_start.sh && \
chmod +x /hosting/papillon/start.sh
CMD cd /hosting/papillon/ && \
pm2 start --name "Papillon" /hosting/papillon/start.sh --cron-restart="$CRON" && \
pm2 logs