1
0
mirror of https://github.com/erlang/docker-erlang-example.git synced 2025-07-30 22:43:04 +03:00

Remove rebar3 install from basic example

rebar3 is already installed in image.
This commit is contained in:
Lukas Larsson
2019-06-26 10:10:27 +02:00
parent 398b9c26d3
commit c54e108bd0
8 changed files with 14 additions and 60 deletions

View File

@ -2,7 +2,7 @@
FROM erlang:alpine
# Set working directory
RUN mkdir -p /buildroot/rebar3/bin
RUN mkdir /buildroot
WORKDIR /buildroot
# Copy our Erlang test application

View File

@ -21,7 +21,7 @@ We use the following Dockerfile, containing two build stages:
FROM erlang:alpine
# Set working directory
RUN mkdir -p /buildroot/rebar3/bin
RUN mkdir /buildroot
WORKDIR /buildroot
# Copy our Erlang test application
@ -31,7 +31,6 @@ COPY dockerwatch dockerwatch
WORKDIR dockerwatch
RUN rebar3 as prod release
# Build stage 1
FROM alpine
@ -62,10 +61,8 @@ This is what happens:
#### 1. Build stage 0: build
This step starts from the official erlang docker image based on alpine
linux. So with the base image, a full Erlang/OTP installation already
exists.
To be able to build our Erlang application, we now install rebar3.
linux. So with the base image, a full Erlang/OTP installation and rebar3
already exists.
Our Erlang application is found in the `dockerwatch` directory on our
local filesystem, and we use the `COPY` command to import this

View File

@ -1,15 +1,8 @@
# Build stage 0
FROM erlang:alpine
# Install Rebar3
RUN mkdir -p /buildroot/rebar3/bin
ADD https://s3.amazonaws.com/rebar3/rebar3 /buildroot/rebar3/bin/rebar3
RUN chmod a+x /buildroot/rebar3/bin/rebar3
# Setup Environment
ENV PATH=/buildroot/rebar3/bin:$PATH
# Reset working directory
# Set working directory
RUN mkdir /buildroot
WORKDIR /buildroot
# Copy our Erlang test application
@ -19,7 +12,6 @@ COPY dockerwatch dockerwatch
WORKDIR dockerwatch
RUN rebar3 as prod release
# Build stage 1
FROM alpine

View File

@ -1,15 +1,8 @@
# Build stage 0
FROM erlang:alpine
# Install Rebar3
RUN mkdir -p /buildroot/rebar3/bin
ADD https://s3.amazonaws.com/rebar3/rebar3 /buildroot/rebar3/bin/rebar3
RUN chmod a+x /buildroot/rebar3/bin/rebar3
# Setup Environment
ENV PATH=/buildroot/rebar3/bin:$PATH
# Reset working directory
# Set working directory
RUN mkdir /buildroot
WORKDIR /buildroot
# Copy our Erlang test application

View File

@ -1,15 +1,8 @@
# Build stage 0
FROM erlang:alpine
# Install Rebar3
RUN mkdir -p /buildroot/rebar3/bin
ADD https://s3.amazonaws.com/rebar3/rebar3 /buildroot/rebar3/bin/rebar3
RUN chmod a+x /buildroot/rebar3/bin/rebar3
# Setup Environment
ENV PATH=/buildroot/rebar3/bin:$PATH
# Reset working directory
RUN mkdir /buildroot
WORKDIR /buildroot
# Copy our Erlang test application

View File

@ -1,15 +1,8 @@
# Build stage 0
FROM erlang:alpine
# Install Rebar3
RUN mkdir -p /buildroot/rebar3/bin
ADD https://s3.amazonaws.com/rebar3/rebar3 /buildroot/rebar3/bin/rebar3
RUN chmod a+x /buildroot/rebar3/bin/rebar3
# Setup Environment
ENV PATH=/buildroot/rebar3/bin:$PATH
# Reset working directory
# Set working directory
RUN mkdir /buildroot
WORKDIR /buildroot
# Copy our Erlang test application

View File

@ -5,15 +5,8 @@ FROM erlang:alpine
RUN apk add --no-cache g++ && \
apk add --no-cache make
# Install Rebar3
RUN mkdir -p /buildroot/rebar3/bin
ADD https://s3.amazonaws.com/rebar3/rebar3 /buildroot/rebar3/bin/rebar3
RUN chmod a+x /buildroot/rebar3/bin/rebar3
# Setup Environment
ENV PATH=/buildroot/rebar3/bin:$PATH
# Reset working directory
RUN mkdir /buildroot
WORKDIR /buildroot
# Copy our Erlang test application

View File

@ -1,15 +1,8 @@
# Build stage 0
FROM erlang:alpine
# Install Rebar3
RUN mkdir -p /buildroot/rebar3/bin
ADD https://s3.amazonaws.com/rebar3/rebar3 /buildroot/rebar3/bin/rebar3
RUN chmod a+x /buildroot/rebar3/bin/rebar3
# Setup Environment
ENV PATH=/buildroot/rebar3/bin:$PATH
# Reset working directory
# Set working directory
RUN mkdir /buildroot
WORKDIR /buildroot
# Copy our Erlang test application