git-secret/.ci/releaser/alpine/Dockerfile

36 lines
764 B
Docker
Raw Normal View History

# Initially copied from
# https://github.com/jordansissel/fpm/blob/master/Dockerfile
FROM alpine:3.15.0
2021-05-06 11:51:06 +00:00
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
ENV CODE_DIR='/code'
ENV SECRETS_PROJECT_ROOT="$CODE_DIR"
RUN apk add --no-cache --update \
2021-05-06 10:16:48 +00:00
# fpm deps:
ruby \
ruby-dev \
ruby-etc \
gcc \
libffi-dev \
make \
libc-dev \
rpm \
tar \
# Direct dependencies:
bash \
gawk \
git \
gnupg \
# Assumed to be present:
curl \
2021-05-06 14:47:41 +00:00
# envsubst for `nfpm`:
gettext \
2021-05-06 10:16:48 +00:00
# Installing `nfpm`, it builds alpine packages:
&& curl -sfL https://install.goreleaser.com/github.com/goreleaser/nfpm.sh | sh \
2021-05-06 14:47:41 +00:00
# Installing `fpm`, it builds all other packages:
2021-05-06 10:16:48 +00:00
&& gem install --no-document fpm
WORKDIR $CODE_DIR