-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (22 loc) · 851 Bytes
/
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
# syntax=docker/dockerfile:1
FROM ubuntu:kinetic
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -qq update
RUN apt-get -qq upgrade
RUN apt-get -qq install sudo curl git
RUN useradd -m jason && \
usermod -aG sudo jason && \
echo "jason ALL=NOPASSWD: ALL" >> /etc/sudoers
COPY ./install.sh /sysgit/install.sh
COPY ./test-config-repo /sysgit/test-config-repo
RUN cd /sysgit/test-config-repo; \
git init; \
git add .; \
git config --global user.email "[email protected]"; \
git config --global user.name "Test"; \
git commit -m "Initial commit"
USER jason
ENV NONINTERACTIVE=1
ENV SYSGIT_CONFIG_REPO="file:///sysgit/test-config-repo/.git"
#RUN sudo apt-get -qq clean autoclean && sudo apt-get -qq autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/
ENTRYPOINT ["/bin/bash", "-c", "/sysgit/install.sh; /bin/bash -"]