forked from ChickenAI/multizlogin
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 731 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 731 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
FROM selenium/standalone-chrome:4.27.0-20250101
USER root
RUN /home/seluser/venv/bin/pip uninstall -y numpy || true
RUN apt-get update && \
apt-get install -y curl gnupg && \
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs libvips-dev
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN chown -R seluser:seluser /app && \
chmod -R 777 /app && \
echo "[program:zalo-bot]\n\
command=npm start\n\
directory=/app\n\
user=seluser\n\
autostart=true\n\
autorestart=true\n\
stdout_logfile=/var/log/zalo-bot.log\n\
stderr_logfile=/var/log/zalo-bot.err.log" > /etc/supervisor/conf.d/zalo-bot.conf
EXPOSE 3000 7900 4444
ENTRYPOINT ["/opt/bin/entry_point.sh"]