x86_64-suse-stepCA/Dockerfile
Jonathan Ervine 5f8e4ae7fa new file: Dockerfile
new file:   Jenkinsfile
Initial commit
2020-04-22 11:33:21 +08:00

30 lines
755 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'
RUN zypper -n in tar wget gzip
RUN groupadd -g $STEP_GID $STEP_GROUP
RUN 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 -xxvf step_linux_$STEP_VERSION_amd64.tar.gz -C /step/bin/ \
rm step_linux_$STEP_VERSION_amd64.tar.gz
EXPOSE 9000/tcp
USER $STEP_USER
CMD [ "/bin/sh" ]