forked from ragnorc/fly-typedb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (25 loc) · 1.29 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
37
38
FROM vaticle/typedb:latest
RUN apt-get update && apt-get install -y \
wget \
bash \
nano \
ca-certificates \
iptables \
curl \
tmux \
gnupg
RUN curl https://pkgs.tailscale.com/stable/ubuntu/focal.gpg | apt-key add -
# Add the tailscale repository
RUN curl https://pkgs.tailscale.com/stable/ubuntu/focal.list | tee /etc/apt/sources.list.d/tailscale.list
RUN apt-get update && apt-get install -y tailscale
WORKDIR /
ENV TYPEDB_VERSION '2.7.0'
RUN curl -L --insecure https://github.com/odise/go-cron/releases/download/v0.0.7/go-cron-linux.gz | zcat > /usr/local/bin/go-cron && chmod u+x /usr/local/bin/go-cron
RUN curl -L --insecure https://github.com/DarthSim/overmind/releases/download/v2.2.2/overmind-v2.2.2-linux-amd64.gz | zcat > /usr/local/bin/overmind && chmod u+x /usr/local/bin/overmind
RUN wget -O mc https://dl.min.io/client/mc/release/linux-amd64/mc && mv mc /usr/local/bin && chmod u+x /usr/local/bin/mc
RUN wget -O tdb https://github.com/vaticle/typedb/releases/download/$TYPEDB_VERSION/typedb-all-linux-$TYPEDB_VERSION.tar.gz && tar -xf tdb && mv typedb-all-linux-$TYPEDB_VERSION typedb-all-linux
ADD Procfile /Procfile
ADD backup.sh /backup.sh
ADD tailscale.sh /tailscale.sh
ADD start.sh /start.sh
CMD ["/bin/sh","start.sh"]