Build vttest, improve runner

This commit is contained in:
Mitchell Hashimoto
2022-07-17 16:32:51 -07:00
parent 462291d80a
commit b04ade67aa
4 changed files with 99 additions and 110 deletions

View File

@@ -1,3 +1,20 @@
#--------------------------------------------------------------------
# vttest
#--------------------------------------------------------------------
FROM alpine:3.16 AS vttest
RUN apk add --no-cache build-base curl
RUN curl -o vttest.tar.gz https://invisible-island.net/archives/vttest/vttest-20220215.tgz && \
tar xvzf vttest.tar.gz && \
cd vttest-20220215 && \
./configure && \
make && \
cp ./vttest /
#--------------------------------------------------------------------
# main runner
#--------------------------------------------------------------------
FROM alpine:3.16
# Base packages. A good set of this is just to get X (xvfb) and OpenGL
@@ -6,6 +23,8 @@ RUN apk add --no-cache \
bash \
grep \
procps \
font-inconsolata-nerd \
i3wm \
imagemagick \
libxrandr \
mesa-dev \
@@ -19,7 +38,8 @@ RUN apk add --no-cache \
RUN apk add --no-cache \
alacritty
COPY ./run.sh /run.sh
COPY ./colors.sh /colors.sh
COPY --from=vttest /vttest /usr/bin/vttest
ENTRYPOINT ["/bin/bash"]
COPY ./run.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]