Browse Source

dockerfile

master
Juni Kim 1 year ago
parent
commit
7d256c61bc
  1. 1
      .gitignore
  2. 6
      Dockerfile
  3. 6
      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

6
install_alpine.sh

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

Loading…
Cancel
Save