mirror of
https://github.com/valitydev/image-service-erlang.git
synced 2024-11-06 00:05:19 +00:00
d2b5ac4230
* Use bash as default shell
31 lines
924 B
Bash
Executable File
31 lines
924 B
Bash
Executable File
#!/bin/bash
|
|
cat <<EOF
|
|
FROM ${BASE_IMAGE}
|
|
|
|
ENV LANG=C.UTF-8
|
|
|
|
MAINTAINER Grigory Antsiferov <g.antsiferov@rbkmoney.com>
|
|
LABEL com.rbkmoney.${SERVICE_NAME}.parent=${BASE_IMAGE_NAME} \
|
|
com.rbkmoney.${SERVICE_NAME}.parent_tag="${BASE_IMAGE_TAG}" \
|
|
com.rbkmoney.${SERVICE_NAME}.branch=${BRANCH} \
|
|
com.rbkmoney.${SERVICE_NAME}.commit_id=${COMMIT} \
|
|
com.rbkmoney.${SERVICE_NAME}.commit_number=`git rev-list --count HEAD`
|
|
|
|
ADD erlang.cfg /tmp
|
|
|
|
RUN set -xe \
|
|
&& apt-get update \
|
|
&& apt-get install -y --no-install-recommends curl equivs \
|
|
&& cd /tmp \
|
|
&& equivs-build erlang.cfg \
|
|
&& dpkg -i erlang*.deb \
|
|
&& apt-get purge -y --auto-remove equivs \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/erlang.cfg /tmp/erlang*.deb \
|
|
&& echo "dash dash/sh boolean false" | debconf-set-selections \
|
|
&& DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
|
|
|
|
CMD ["bash"]
|
|
EOF
|
|
|