x86_64-suse-stepCA/Dockerfile
Jonathan Ervine 3091dcda6c modified: Dockerfile
new file:   start.sh
Customised to be ready to bootstrap CA
2020-04-23 21:49:10 +08:00

37 lines
892 B
Docker

# Base on latest (edge) alpine image
FROM opensuse/leap:15.1
MAINTAINER “Jonathan Ervine” <docker@ervine.org>
# Install updates
ENV LANG='en_US.UTF-8' \
LANGUAGE='en_US.UTF-8' \
TERM='xterm' \
STEP_USER='step' \
STEP_GROUP='step' \
STEP_UID='1001' \
STEP_GID='1001' \
STEP_VERSION='0.14.2' \
STEP="/home/step" \
STEPPATH="/home/step" \
STEPDEBUG="1"
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 && \
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" ]