-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
48 lines (29 loc) · 927 Bytes
/
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
39
40
41
42
43
44
45
46
47
48
FROM btwiuse/k0s AS k0s
FROM btwiuse/dkg AS dkg
# cargo build --release && cd ./target/release/ && cp deno subshell && dkg push -i btwiuse/subshell:bin -f subshell
FROM btwiuse/subshell:bin AS subshell-bin
FROM btwiuse/arch:deno
ENV RUNNING_IN_DOCKER=1
RUN pacman -Syu --noconfirm --needed --overwrite='*' htop neofetch figlet
COPY --from=k0s /usr/bin/k0s /bin/hub
COPY --from=dkg /bin/dkg /bin
# COPY --from=subshell-bin --chmod=777 /subshell /bin
COPY --from=subshell-bin /subshell /bin
RUN chmod a+rx /bin/subshell
RUN ln -sf /bin/hub /bin/agent
ADD subsh-deno /bin/
WORKDIR /app
COPY *.ts ./
COPY .github/ ./
COPY deno.json ./
COPY package.json ./
ENV DENO_DIR=/cache
RUN subsh-deno cache
RUN useradd -N subshell
RUN chown -R subshell /cache
COPY deno_history.txt /cache/
RUN chown root:root /cache/deno_history.txt
RUN chmod 644 /cache/deno_history.txt
USER subshell
ENV SUBSHELL_VERSION 0.2.45
CMD hub