Skip to content

Commit 4181403

Browse files
committed
Change to debian
1 parent 6496574 commit 4181403

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

Diff for: Dockerfile

+18-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
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
716
RUN mkdir /app
@@ -30,8 +39,12 @@ COPY rel rel
3039
RUN 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

3649
RUN mkdir /app
3750
WORKDIR /app
@@ -41,3 +54,4 @@ RUN chown -R nobody: /app
4154
USER nobody
4255

4356
ENV HOME=/app
57+
ENV LANG=C.UTF-8

0 commit comments

Comments
 (0)