-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 814 Bytes
/
Dockerfile
File metadata and controls
35 lines (26 loc) · 814 Bytes
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
FROM alpine:3.22.0 as cmatrixbuilder
WORKDIR cmatrix
RUN apk update && \
apk add --no-cache \
git \
automake \
autoconf \
alpine-sdk \
ncurses-dev \
ncurses-static && \
git clone https://github.com/abishekvashok/cmatrix.git . && \
autoreconf -i && \
mkdir -p /usr/lib/kbd/consolefonts /usr/share/consolefonts && \
./configure LDFLAGS="-static" && \
make
FROM alpine:3.22.0
LABEL org.opencontainers.image.authors="Abstract Labs" \
org.opencontainers.image.description="Image for https://github.com/abishekvashok/cmatrix"
RUN apk update && \
apk add --no-cache \
ncurses-terminfo-base && \
adduser -g "The One" -s /usr/sbin/nologin -D -H neo
COPY --from=cmatrixbuilder /cmatrix/cmatrix /cmatrix
USER neo
ENTRYPOINT ["./cmatrix"]
CMD ["-b"]