x86_64-suse-stepCA/Dockerfile
Jonathan Ervine c6c2863ded modified: Dockerfile
Fixed filenames with variables
2020-04-23 13:58:47 +08:00

30 lines
772 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 && \
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/
RUN rm step_linux_$STEP_VERSION\_amd64.tar.gz
EXPOSE 9000/tcp
USER $STEP_USER
CMD [ "/bin/sh" ]