File tree 1 file changed +18
-4
lines changed
1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change 1
- FROM hexpm/elixir:1.17.3-erlang-27.1.2-alpine-3.20.3 AS build
1
+ ARG ELIXIR_VERSION=1.17.3
2
+ ARG ERLANG_VERSION=27.2
3
+ ARG DEBIAN_VERSION=bookworm-20241202-slim
4
+
5
+ FROM hexpm/elixir:${ELIXIR_VERSION}-erlang-${ERLANG_VERSION}-debian-${DEBIAN_VERSION} AS build
6
+
7
+ ENV LANG=C.UTF-8
2
8
3
9
# install build dependencies
4
- RUN apk add --no-cache --update git
10
+ RUN apt update && \
11
+ apt upgrade -y && \
12
+ apt install -y --no-install-recommends git build-essential && \
13
+ apt clean -y && rm -rf /var/lib/apt/lists/*
5
14
6
15
# prepare build dir
7
16
RUN mkdir /app
@@ -30,8 +39,12 @@ COPY rel rel
30
39
RUN mix do sentry.package_source_code, release
31
40
32
41
# prepare release image
33
- FROM alpine:3.20.3 AS app
34
- RUN apk add --no-cache --update bash openssl libgcc libstdc++ ncurses
42
+ FROM debian:${DEBIAN_VERSION} AS app
43
+
44
+ RUN apt update && \
45
+ apt upgrade -y && \
46
+ apt install --no-install-recommends -y bash openssl && \
47
+ apt clean -y && rm -rf /var/lib/apt/lists/*
35
48
36
49
RUN mkdir /app
37
50
WORKDIR /app
@@ -41,3 +54,4 @@ RUN chown -R nobody: /app
41
54
USER nobody
42
55
43
56
ENV HOME=/app
57
+ ENV LANG=C.UTF-8
You can’t perform that action at this time.
0 commit comments