2022-02-09 15:21:50 +00:00
|
|
|
ARG OTP_VERSION
|
|
|
|
|
|
|
|
FROM docker.io/library/erlang:${OTP_VERSION}
|
2022-04-14 10:08:17 +00:00
|
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
2022-02-09 15:21:50 +00:00
|
|
|
|
|
|
|
# Install thrift compiler
|
|
|
|
ARG THRIFT_VERSION
|
2022-04-15 11:07:54 +00:00
|
|
|
ARG TARGETARCH
|
|
|
|
RUN wget -q -O- "https://github.com/valitydev/thrift/releases/download/${THRIFT_VERSION}/thrift-${THRIFT_VERSION}-linux-${TARGETARCH}.tar.gz" \
|
2022-02-09 15:21:50 +00:00
|
|
|
| tar -xvz -C /usr/local/bin/
|
|
|
|
|
|
|
|
# Set env
|
|
|
|
ENV CHARSET=UTF-8
|
|
|
|
ENV LANG=C.UTF-8
|
|
|
|
|
|
|
|
# Set runtime
|
2022-04-14 10:08:17 +00:00
|
|
|
CMD ["/bin/bash"]
|