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 9, 2023
1 parent a84d5f0 commit 7614475
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tools/astarte_e2e/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
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

Expand All @@ -23,7 +28,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 All @@ -40,4 +45,4 @@ ARG BUILD_ENV=prod

COPY --from=builder /app/_build/$BUILD_ENV/rel/astarte_e2e .

CMD ["./bin/astarte_e2e", "start"]
CMD ["./bin/astarte_e2e", "start"]

0 comments on commit 7614475

Please sign in to comment.