-
Notifications
You must be signed in to change notification settings - Fork 39
/
Dockerfile
36 lines (27 loc) · 1.07 KB
/
Dockerfile
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
# GenieACS v1.2 Dockerfile #
############################
FROM node:20-bullseye
LABEL maintainer="[email protected]"
RUN apt-get update && apt-get install -y sudo supervisor git
RUN mkdir -p /var/log/supervisor
#RUN npm install -g --unsafe-perm [email protected]
WORKDIR /opt
RUN git clone https://github.com/genieacs/genieacs.git -b v1.2.13 --depth 1
WORKDIR /opt/genieacs
RUN npm install
RUN npm i -D tslib
RUN npm run build
RUN useradd --system --no-create-home --user-group genieacs
#RUN mkdir /opt/genieacs
RUN mkdir /opt/genieacs/ext
RUN chown genieacs:genieacs /opt/genieacs/ext
RUN mkdir /var/log/genieacs
RUN chown genieacs:genieacs /var/log/genieacs
ADD genieacs.logrotate /etc/logrotate.d/genieacs
WORKDIR /opt
RUN git clone https://github.com/GeiserX/genieacs-services -b 1.2 --depth 1
RUN cp genieacs-services/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN cp genieacs-services/run_with_env.sh /usr/bin/run_with_env.sh
RUN chmod +x /usr/bin/run_with_env.sh
WORKDIR /var/log/genieacs
CMD ["/usr/bin/supervisord","-c","/etc/supervisor/conf.d/supervisord.conf"]