forked from c0b/docker-elixir
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cluster-elixir-1.14-otp-24'
- Loading branch information
Showing
4 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM erlang:24-alpine | ||
|
||
# elixir expects utf8. | ||
ENV ELIXIR_VERSION="v1.14.1" \ | ||
LANG=C.UTF-8 | ||
|
||
RUN set -xe \ | ||
&& ELIXIR_DOWNLOAD_URL="https://github.com/elixir-lang/elixir/archive/${ELIXIR_VERSION}.tar.gz" \ | ||
&& ELIXIR_DOWNLOAD_SHA256="8ad537eb84471c24c3e6984c37884f06a7834ff2efd72c436c222baee8df9a11" \ | ||
&& buildDeps=' \ | ||
ca-certificates \ | ||
curl \ | ||
make \ | ||
' \ | ||
&& apk add --no-cache --virtual .build-deps $buildDeps \ | ||
&& curl -fSL -o elixir-src.tar.gz $ELIXIR_DOWNLOAD_URL \ | ||
&& echo "$ELIXIR_DOWNLOAD_SHA256 elixir-src.tar.gz" | sha256sum -c - \ | ||
&& mkdir -p /usr/local/src/elixir \ | ||
&& tar -xzC /usr/local/src/elixir --strip-components=1 -f elixir-src.tar.gz \ | ||
&& rm elixir-src.tar.gz \ | ||
&& cd /usr/local/src/elixir \ | ||
&& make install clean \ | ||
&& find /usr/local/src/elixir/ -type f -not -regex "/usr/local/src/elixir/lib/[^\/]*/lib.*" -exec rm -rf {} + \ | ||
&& find /usr/local/src/elixir/ -type d -depth -empty -delete \ | ||
&& apk del .build-deps | ||
|
||
CMD ["iex"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM erlang:24-slim | ||
|
||
# elixir expects utf8. | ||
ENV ELIXIR_VERSION="v1.14.1" \ | ||
LANG=C.UTF-8 | ||
|
||
RUN set -xe \ | ||
&& ELIXIR_DOWNLOAD_URL="https://github.com/elixir-lang/elixir/archive/${ELIXIR_VERSION}.tar.gz" \ | ||
&& ELIXIR_DOWNLOAD_SHA256="8ad537eb84471c24c3e6984c37884f06a7834ff2efd72c436c222baee8df9a11" \ | ||
&& buildDeps=' \ | ||
ca-certificates \ | ||
curl \ | ||
make \ | ||
' \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends $buildDeps \ | ||
&& curl -fSL -o elixir-src.tar.gz $ELIXIR_DOWNLOAD_URL \ | ||
&& echo "$ELIXIR_DOWNLOAD_SHA256 elixir-src.tar.gz" | sha256sum -c - \ | ||
&& mkdir -p /usr/local/src/elixir \ | ||
&& tar -xzC /usr/local/src/elixir --strip-components=1 -f elixir-src.tar.gz \ | ||
&& rm elixir-src.tar.gz \ | ||
&& cd /usr/local/src/elixir \ | ||
&& make install clean \ | ||
&& find /usr/local/src/elixir/ -type f -not -regex "/usr/local/src/elixir/lib/[^\/]*/lib.*" -exec rm -rf {} + \ | ||
&& find /usr/local/src/elixir/ -type d -depth -empty -delete \ | ||
&& apt-get purge -y --auto-remove $buildDeps \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
CMD ["iex"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM erlang:24 | ||
|
||
# elixir expects utf8. | ||
ENV ELIXIR_VERSION="v1.14.1" \ | ||
LANG=C.UTF-8 | ||
|
||
RUN set -xe \ | ||
&& ELIXIR_DOWNLOAD_URL="https://github.com/elixir-lang/elixir/archive/${ELIXIR_VERSION}.tar.gz" \ | ||
&& ELIXIR_DOWNLOAD_SHA256="8ad537eb84471c24c3e6984c37884f06a7834ff2efd72c436c222baee8df9a11" \ | ||
&& curl -fSL -o elixir-src.tar.gz $ELIXIR_DOWNLOAD_URL \ | ||
&& echo "$ELIXIR_DOWNLOAD_SHA256 elixir-src.tar.gz" | sha256sum -c - \ | ||
&& mkdir -p /usr/local/src/elixir \ | ||
&& tar -xzC /usr/local/src/elixir --strip-components=1 -f elixir-src.tar.gz \ | ||
&& rm elixir-src.tar.gz \ | ||
&& cd /usr/local/src/elixir \ | ||
&& make install clean \ | ||
&& find /usr/local/src/elixir/ -type f -not -regex "/usr/local/src/elixir/lib/[^\/]*/lib.*" -exec rm -rf {} + \ | ||
&& find /usr/local/src/elixir/ -type d -depth -empty -delete | ||
|
||
CMD ["iex"] |