modified: Dockerfile

new file:   start.sh
Customised to be ready to bootstrap CA
This commit is contained in:
Jonathan Ervine
2020-04-23 21:49:10 +08:00
parent c6c2863ded
commit 3091dcda6c
3 changed files with 174 additions and 4 deletions
+11 -4
View File
@@ -11,19 +11,26 @@ ENV LANG='en_US.UTF-8' \
STEP_GROUP='step' \
STEP_UID='1001' \
STEP_GID='1001' \
STEP_VERSION='0.14.2'
STEP_VERSION='0.14.2' \
STEP="/home/step" \
STEPPATH="/home/step" \
STEPDEBUG="1"
RUN zypper -n in tar wget gzip && \
RUN zypper -n in tar wget curl gzip && \
groupadd -g $STEP_GID $STEP_GROUP && \
useradd -u $STEP_UID -g $STEP_GROUP -M $STEP_USER
RUN wget https://github.com/smallstep/cli/releases/download/v$STEP_VERSION/step_linux_$STEP_VERSION\_amd64.tar.gz && \
mkdir -p /step/bin && \
tar -zxvf step_linux_$STEP_VERSION\_amd64.tar.gz -C /step/bin/
tar -zxvf step_linux_$STEP_VERSION\_amd64.tar.gz -C /usr/local/bin/ && \
mkdir /home/step
RUN rm step_linux_$STEP_VERSION\_amd64.tar.gz
EXPOSE 9000/tcp
USER $STEP_USER
WORKDIR /home/step
STOPSIGNAL SIGTERM
CMD [ "/bin/sh" ]