File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed
Expand file tree Collapse file tree 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
28
39# 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/*
514
615# prepare build dir
716RUN mkdir /app
@@ -30,8 +39,12 @@ COPY rel rel
3039RUN mix do sentry.package_source_code, release
3140
3241# 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/*
3548
3649RUN mkdir /app
3750WORKDIR /app
@@ -41,3 +54,4 @@ RUN chown -R nobody: /app
4154USER nobody
4255
4356ENV HOME=/app
57+ ENV LANG=C.UTF-8
You can’t perform that action at this time.
0 commit comments