mirror of
https://github.com/internetee/epp_proxy.git
synced 2025-08-21 14:49:33 +02:00
Divided dockerfiles to base and release dockerfile
This commit is contained in:
parent
ecafc5236e
commit
eaddd34aed
2 changed files with 56 additions and 0 deletions
13
Dockerfile.release
Normal file
13
Dockerfile.release
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
FROM internetee/erlang-ruby:21.3.8-2.6.3 AS build
|
||||||
|
COPY . ./scr/
|
||||||
|
|
||||||
|
WORKDIR /opt/erlang/epp_proxy/scr
|
||||||
|
|
||||||
|
RUN rebar3 as prod release
|
||||||
|
|
||||||
|
FROM internetee/erlang-ruby:21.3.8-2.6.3
|
||||||
|
LABEL org.opencontainers.image.source=https://github.com/internetee/epp_proxy
|
||||||
|
|
||||||
|
|
||||||
|
COPY --from=build /opt/erlang/epp_proxy/scr/_build/prod/rel/epp_proxy ./release
|
||||||
|
RUN ln -s /opt/erlang/epp_proxy/release/bin/epp_proxy ./epp_proxy
|
43
Erlang-ruby.base
Normal file
43
Erlang-ruby.base
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
FROM debian:buster-slim
|
||||||
|
# TODO move me to Docker images repo
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
wget \
|
||||||
|
git \
|
||||||
|
build-essential=* \
|
||||||
|
libncurses5-dev=* \
|
||||||
|
automake=* \
|
||||||
|
autoconf=* \
|
||||||
|
curl=* \
|
||||||
|
ca-certificates=* \
|
||||||
|
libssl-dev=* \
|
||||||
|
libreadline-dev=* \
|
||||||
|
libdpkg-perl=* \
|
||||||
|
liberror-perl=* \
|
||||||
|
libc6=* \
|
||||||
|
libc-dev \
|
||||||
|
perl=* \
|
||||||
|
procps=* \
|
||||||
|
inotify-tools=* \
|
||||||
|
libssl1.1=* \
|
||||||
|
perl-base=* \
|
||||||
|
zlib1g-dev \
|
||||||
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN git clone https://github.com/asdf-vm/asdf.git "$HOME"/.asdf && \
|
||||||
|
echo '. $HOME/.asdf/asdf.sh' >> "$HOME"/.bashrc && \
|
||||||
|
echo '. $HOME/.asdf/asdf.sh' >> "$HOME"/.profile
|
||||||
|
|
||||||
|
ENV PATH="${PATH}:/root/.asdf/shims:/root/.asdf/bin"
|
||||||
|
|
||||||
|
RUN mkdir -p /opt/erlang/epp_proxy/release
|
||||||
|
WORKDIR /opt/erlang/epp_proxy
|
||||||
|
|
||||||
|
COPY .tool-versions ./
|
||||||
|
RUN asdf plugin-add erlang
|
||||||
|
RUN asdf install
|
||||||
|
RUN asdf global erlang $(grep erlang .tool-versions | cut -d' ' -f2)
|
||||||
|
RUN asdf plugin-add ruby
|
||||||
|
RUN asdf plugin-add rebar
|
||||||
|
RUN asdf install
|
Loading…
Add table
Add a link
Reference in a new issue