2022-02-11 11:38:49 +00:00
|
|
|
ARG OTP_VERSION
|
2022-01-25 17:45:08 +00:00
|
|
|
|
2022-02-11 11:38:49 +00:00
|
|
|
FROM docker.io/library/erlang:${OTP_VERSION}
|
2022-07-12 11:47:04 +00:00
|
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
2022-01-25 17:45:08 +00:00
|
|
|
|
2022-07-12 11:47:04 +00:00
|
|
|
# Install thrift compiler
|
2022-01-25 17:45:08 +00:00
|
|
|
ARG THRIFT_VERSION
|
2022-07-12 11:47:04 +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-01-25 17:45:08 +00:00
|
|
|
| tar -xvz -C /usr/local/bin/
|
|
|
|
|
2022-07-12 11:47:04 +00:00
|
|
|
# Set env
|
2022-01-25 17:45:08 +00:00
|
|
|
ENV CHARSET=UTF-8
|
|
|
|
ENV LANG=C.UTF-8
|
2022-07-12 11:47:04 +00:00
|
|
|
|
|
|
|
# Set runtime
|
|
|
|
CMD ["/bin/bash"]
|