-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile-apt
61 lines (43 loc) · 1.6 KB
/
Dockerfile-apt
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
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM ubuntu:latest
ENV RUST_BACKTRACE=1
ENV RUST_BACKTRACE=full
ENV COLORBT_SHOW_HIDDEN=1
ENV DEBUG=false
ENV TRACE=""
ENV VEILID_CONFIG=/etc/veilid-server/veilid-server.conf
# install
RUN apt update && \
apt upgrade -y && \
apt install -y wget gpg sudo systemd vim && \
apt clean && \
rm -rf /var/lib/apt/lists/\* /tmp/\* /var/tmp/*
RUN wget -O- https://packages.veilid.net/gpg/veilid-packages-key.public | sudo gpg --dearmor -o /usr/share/keyrings/veilid-packages-keyring.gpg
RUN if dpkg --print-architecture | grep arm64 ; then echo "deb [arch=arm64 signed-by=/usr/share/keyrings/veilid-packages-keyring.gpg] https://packages.veilid.net/apt stable main" | sudo tee /etc/apt/sources.list.d/veilid.list; fi
RUN if dpkg --print-architecture | grep amd64 ; then echo "deb [arch=amd64 signed-by=/usr/share/keyrings/veilid-packages-keyring.gpg] https://packages.veilid.net/apt stable main" | sudo tee /etc/apt/sources.list.d/veilid.list; fi
RUN cat /etc/apt/sources.list.d/veilid.list
RUN apt update && \
apt install -y veilid-server veilid-cli
COPY entry.sh /entry.sh
RUN chown veilid /entry.sh
COPY config/veilid-server.conf /veilid-server.conf
COPY config/veilid-server.conf $VEILID_CONFIG
# sudo -u veilid veilid-server
#USER veilid
# config
VOLUME /root/.config/veilid/
# State holds the node ID etc. to persist between runs
VOLUME /root/.local/share/veilid/
# logs
VOLUME /logs
# data
VOLUME /var/db/veilid-server
# listen_address
# IPC is used by default
EXPOSE 5959
# I see this port used in logs
EXPOSE 5150
# grpc_endpoint
EXPOSE 4317
EXPOSE 80
EXPOSE 443
ENTRYPOINT ["/bin/bash", "/entry.sh"]