mirror of
https://github.com/darksaid98/yolks.git
synced 2026-12-02 14:38:59 +00:00
Added Elixir images (#182)
This commit is contained in:
1 parent
e2271e4503
commit
02a50118ef
8 files changed
+146
No files matched your search
@@ -0,0 +1,15 @@
|
||||
FROM --platform=$TARGETOS/$TARGETARCH elixir:1.12.3-slim
|
||||
|
||||
LABEL author="MrAvox" maintainer="[email protected]"
|
||||
|
||||
RUN apt update \
|
||||
&& apt -y install git dnsutils curl iproute2 ffmpeg \
|
||||
&& useradd -m -d /home/container container
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
ENTRYPOINT []
|
||||
COPY ./../entrypoint.sh /entrypoint.sh
|
||||
CMD [ "/bin/bash", "/entrypoint.sh" ]
|
||||
@@ -0,0 +1,15 @@
|
||||
FROM --platform=$TARGETOS/$TARGETARCH elixir:1.13.4-slim
|
||||
|
||||
LABEL author="MrAvox" maintainer="[email protected]"
|
||||
|
||||
RUN apt update \
|
||||
&& apt -y install git dnsutils curl iproute2 ffmpeg \
|
||||
&& useradd -m -d /home/container container
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
ENTRYPOINT []
|
||||
COPY ./../entrypoint.sh /entrypoint.sh
|
||||
CMD [ "/bin/bash", "/entrypoint.sh" ]
|
||||
@@ -0,0 +1,15 @@
|
||||
FROM --platform=$TARGETOS/$TARGETARCH elixir:1.14.5-slim
|
||||
|
||||
LABEL author="MrAvox" maintainer="[email protected]"
|
||||
|
||||
RUN apt update \
|
||||
&& apt -y install git dnsutils curl iproute2 ffmpeg \
|
||||
&& useradd -m -d /home/container container
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
ENTRYPOINT []
|
||||
COPY ./../entrypoint.sh /entrypoint.sh
|
||||
CMD [ "/bin/bash", "/entrypoint.sh" ]
|
||||
@@ -0,0 +1,15 @@
|
||||
FROM --platform=$TARGETOS/$TARGETARCH elixir:1.15.4-slim
|
||||
|
||||
LABEL author="MrAvox" maintainer="[email protected]"
|
||||
|
||||
RUN apt update \
|
||||
&& apt -y install git dnsutils curl iproute2 ffmpeg \
|
||||
&& useradd -m -d /home/container container
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
ENTRYPOINT []
|
||||
COPY ./../entrypoint.sh /entrypoint.sh
|
||||
CMD [ "/bin/bash", "/entrypoint.sh" ]
|
||||
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
cd /home/container
|
||||
|
||||
# Make internal Docker IP address available to processes.
|
||||
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
|
||||
export INTERNAL_IP
|
||||
|
||||
# Replace Startup Variables
|
||||
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
|
||||
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
|
||||
# Print Elixir Version
|
||||
elixir -e 'IO.puts "Elixir " <> System.version()'
|
||||
|
||||
# Run the Server
|
||||
eval ${MODIFIED_STARTUP}
|
||||
@@ -0,0 +1,15 @@
|
||||
FROM --platform=$TARGETOS/$TARGETARCH elixir:slim
|
||||
|
||||
LABEL author="MrAvox" maintainer="[email protected]"
|
||||
|
||||
RUN apt update \
|
||||
&& apt -y install git dnsutils curl iproute2 ffmpeg \
|
||||
&& useradd -m -d /home/container container
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
ENTRYPOINT []
|
||||
COPY ./../entrypoint.sh /entrypoint.sh
|
||||
CMD [ "/bin/bash", "/entrypoint.sh" ]
|
||||
Reference in new issue
Block a user