reworking
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-10-26 16:31:15 -07:00
parent c0d903524a
commit 232c2f8d22
21 changed files with 35 additions and 12 deletions

View File

@@ -3,7 +3,7 @@ FROM ubuntu@sha256:5747316366b8cc9e3021cd7286f42b2d6d81e3d743e2ab571f55bcd5df788
ENV DEBIAN_FRONTEND noninteractive
ARG UBUNTU_MIRROR=http://archive.ubuntu.com/ubuntu
ARG UBUNTU_MIRROR=mirror://mirrors.ubuntu.com/mirrors.txt
ARG UID_TO_ADD=1000
ARG GID_TO_ADD=1000
@@ -22,7 +22,6 @@ RUN \
useradd -u $UID_TO_ADD -g $GID_TO_ADD --home-dir /home/user -m -s /bin/bash $USERNAME_TO_ADD && \
usermod -p '*' $USERNAME_TO_ADD
ADD https://sneak.cloud/authorized_keys /root/.ssh/authorized_keys
ADD https://sneak.cloud/authorized_keys /home/user/.ssh/authorized_keys
@@ -189,8 +188,8 @@ USER root
ENV HOME /root
COPY ./root /
COPY ./build /tmp/build
COPY ./root.sh /tmp/build/root.sh
COPY ./user.sh /tmp/build/user.sh
RUN bash /tmp/build/root.sh
USER user