2021-05-04 18:58:36 +00:00
|
|
|
# Initially copied from
|
|
|
|
# https://github.com/jordansissel/fpm/blob/master/Dockerfile
|
2021-11-29 15:03:50 +00:00
|
|
|
FROM alpine:3.15.0
|
2021-05-04 18:58:36 +00:00
|
|
|
|
2021-05-06 11:51:06 +00:00
|
|
|
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
|
|
|
|
|
2021-05-04 18:58:36 +00:00
|
|
|
ENV CODE_DIR='/code'
|
2021-05-05 12:59:28 +00:00
|
|
|
ENV SECRETS_PROJECT_ROOT="$CODE_DIR"
|
2021-05-04 18:58:36 +00:00
|
|
|
|
|
|
|
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
|
2021-05-04 18:58:36 +00:00
|
|
|
|
|
|
|
WORKDIR $CODE_DIR
|