Dockerfile 658 Bytes
Newer Older
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
FROM ubuntu:22.04
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --force-yes -y \
    bc \
    iputils-ping \
    iproute2 \
    openssl \
    bzip2 \
    udisks2 \
    coreutils \
    p7zip-full \
    wget \
    unzip \
    zip \
    git \
    curl \
    simg2img \
    file \
    openssh-client \
    ca-certificates \
    && apt-get clean all

# custom tools
COPY tools/upload.sh /usr/bin
COPY tools/upload /usr/bin

RUN mkdir -p /root/.ssh && chmod 0700 /root/.ssh
RUN ls -l /root/.ssh
COPY Docker/id_rsa /root/.ssh
RUN chown root:root -R /root/.ssh

COPY Docker/start.sh /start.sh

ENTRYPOINT ["/start.sh"]