-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (30 loc) · 1.14 KB
/
Dockerfile
File metadata and controls
37 lines (30 loc) · 1.14 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
FROM nginx:trixie
EXPOSE 80
EXPOSE 443
# install modules
RUN apt-get update && apt-get install npm nodejs net-tools cron logrotate dnsutils procps -y && apt-get clean && rm -rf /var/lib/apt/lists/*
# install anubis
WORKDIR /tmp
RUN curl -L -O https://github.com/TecharoHQ/anubis/releases/download/v1.21.3/anubis_1.21.3_amd64.deb
RUN apt-get install ./anubis_1.21.3_amd64.deb -y
RUN rm anubis_1.21.3_amd64.deb
# system configuration
RUN echo "net.ipv4.tcp_fin_timeout=3" >> /etc/sysctl.conf
# copy and config
COPY container_files/default_nginx.conf /default_config/default_nginx.conf
COPY container_files/default_config.json /default_config/default_config.json
COPY container_files/default_anubis.yaml /default_config/default_anubis.yaml
COPY container_files/anubis.conf /etc/nginx/anubis.conf
RUN cp /default_config/default_nginx.conf /etc/nginx/nginx.conf
COPY admin /admin
COPY container_files/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN mkdir -p /data/cert
RUN rm -f /var/log/nginx/*
# change to node folder
WORKDIR /admin
RUN npm install -g esbuild
RUN npm install
RUN npm run build
RUN npm run cleanBuild
ENTRYPOINT ["/entrypoint.sh"]