Browse Source

dockerfile

master
Juni Kim 2 years ago
parent
commit
7d256c61bc
  1. 1
      .gitignore
  2. 6
      Dockerfile
  3. 4
      install_alpine.sh

1
.gitignore

@ -0,0 +1 @@
.DS_Store

6
Dockerfile

@ -0,0 +1,6 @@
FROM alpine:latest
ENV DOCKERBUILD 1
COPY . /initscripts/
RUN /initscripts/install_alpine.sh root
RUN /initscripts/install_alpine.sh user

4
install_alpine.sh

@ -26,7 +26,11 @@ root_setup() {
apk add doas apk add doas
echo "permit nopass :wheel" >> /etc/doas.d/doas.conf echo "permit nopass :wheel" >> /etc/doas.d/doas.conf
} }
if test -z "$DOCKERBUILD"; then
usertest && createuser && installdoas usertest && createuser && installdoas
else
usertest && installdoas
fi
} }
user_setup() { user_setup() {

Loading…
Cancel
Save