Skip to content

Commit

Permalink
AstarteE2E: update Docker file
Browse files Browse the repository at this point in the history
Signed-off-by: Osman Hadzic <osman.hadzic@secomind.com>
  • Loading branch information
osmanhadzic committed Nov 7, 2023
1 parent a84d5f0 commit a17db28
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions tools/astarte_e2e/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
FROM elixir:1.11.4 as builder
FROM hexpm/elixir:1.14.5-erlang-25.3.2-debian-bullseye-20230522-slim as builder

# install build dependencies
# --allow-releaseinfo-change allows to pull from 'oldstable'
RUN apt-get update --allow-releaseinfo-change -y && apt-get install -y build-essential git \
&& apt-get clean && rm -f /var/lib/apt/lists/*_*

WORKDIR /app

# Install hex
RUN mix local.hex --force && \
mix local.rebar --force && \
mix hex.info
RUN mix local.rebar --force && \
mix hex.info

# Pass --build-arg BUILD_ENV=dev to build a dev image
ARG BUILD_ENV=prod
Expand All @@ -23,7 +27,7 @@ ADD . .
RUN mix do compile, release

# Note: it is important to keep Debian versions in sync, or incompatibilities between libcrypto will happen
FROM debian:buster-slim
FROM debian:bullseye-slim

WORKDIR /app

Expand Down

0 comments on commit a17db28

Please sign in to comment.