-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (31 loc) · 1.07 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
ARG MDVL_CI_DEBIAN_VERSION=bookworm
FROM debian:$MDVL_CI_DEBIAN_VERSION
ARG MDVL_CI_DEBIAN_VERSION=bookworm
ARG MA_DEBIAN_MIRROR=http://ftp.it.debian.org/debian
SHELL ["/bin/sh", "-ec"]
RUN :; \
set -x; \
printf "%s\n%s\n%s %s\n" \
"deb $MA_DEBIAN_MIRROR $MDVL_CI_DEBIAN_VERSION main" \
"deb $MA_DEBIAN_MIRROR $MDVL_CI_DEBIAN_VERSION-updates main" \
"deb http://security.debian.org/" \
"$MDVL_CI_DEBIAN_VERSION-security main" \
> /etc/apt/sources.list; \
apt-get update; \
apt-get -y dist-upgrade; \
apt-get -y install ant git gnat rsync openssh-client libsodium-dev yq \
pv tmux; \
useradd -u 1000 -m backuptest; \
echo ZXhwb3J0IFBTMT0nXFtcMDMzWzM2OzQwOzFtXF1cSDpcd1wkXFtcMDMzXTA7XEg6XHdcJFwwMDdcMDMzWzAwbVxdICcK | base64 -d > /etc/profile.d/prompt.sh; \
echo set-window-option -g mode-keys vi > /etc/tmux.conf; \
:;
COPY --chown=1000:1000 . /home/backuptest/src
USER backuptest
RUN :; \
set -x; \
cd /home/backuptest/src; \
ant build-rogue; \
:;
USER root
RUN install -m 755 /home/backuptest/src/maxbupst /usr/local/bin/maxbupst
CMD ["/bin/tail", "-f", "/dev/null"]