|
7 | 7 | # This file is based on these images: |
8 | 8 | # |
9 | 9 | # - https://hub.docker.com/r/hexpm/elixir/tags - for the build image |
10 | | -# - https://hub.docker.com/_/debian?tab=tags&page=1&name=bullseye-20240612-slim - for the release image |
| 10 | +# - https://hub.docker.com/_/debian?tab=tags&page=1&name=bookworm-slim - for the release image |
11 | 11 | # - https://pkgs.org/ - resource for finding needed packages |
12 | | -# - Ex: hexpm/elixir:1.17.1-erlang-26.2.5.1-debian-bullseye-20240612-slim |
| 12 | +# - Ex: hexpm/elixir:1.18.1-erlang-27.2.0-debian-bookworm-20250113-slim |
13 | 13 | # |
14 | | -ARG ELIXIR_VERSION=1.17.3 |
15 | | -ARG OTP_VERSION=27.1.1 |
16 | | -ARG DEBIAN_VERSION=bookworm-20240926 |
| 14 | +ARG ELIXIR_VERSION=1.19.5 |
| 15 | +ARG OTP_VERSION=27.3.4.10 |
| 16 | +ARG DEBIAN_VERSION=bookworm-20260406-slim |
17 | 17 |
|
18 | 18 | ARG BUILDER_IMAGE="hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-debian-${DEBIAN_VERSION}" |
19 | 19 | ARG RUNNER_IMAGE="debian:${DEBIAN_VERSION}" |
20 | 20 |
|
21 | | -FROM ${BUILDER_IMAGE} as builder |
| 21 | +FROM ${BUILDER_IMAGE} AS builder |
22 | 22 |
|
23 | 23 | # install build dependencies |
24 | 24 | RUN apt-get update -y && apt-get install -y build-essential git curl \ |
25 | 25 | && apt-get clean && rm -f /var/lib/apt/lists/*_* |
26 | 26 |
|
27 | 27 | # install nodejs for build stage |
28 | | -RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash - && apt-get install -y nodejs |
| 28 | +RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs |
29 | 29 |
|
30 | 30 | # prepare build dir |
31 | 31 | WORKDIR /app |
@@ -77,15 +77,15 @@ RUN apt-get update -y && \ |
77 | 77 | apt-get install -y libstdc++6 openssl libncurses5 locales ca-certificates curl \ |
78 | 78 | && apt-get clean && rm -f /var/lib/apt/lists/*_* |
79 | 79 |
|
80 | | -# install nodejs for production environment |
81 | | -RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash - && apt-get install -y nodejs |
| 80 | +# install nodejs for production environment (needed for SSR) |
| 81 | +RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs |
82 | 82 |
|
83 | 83 | # Set the locale |
84 | 84 | RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen |
85 | 85 |
|
86 | | -ENV LANG en_US.UTF-8 |
87 | | -ENV LANGUAGE en_US:en |
88 | | -ENV LC_ALL en_US.UTF-8 |
| 86 | +ENV LANG=en_US.UTF-8 |
| 87 | +ENV LANGUAGE=en_US:en |
| 88 | +ENV LC_ALL=en_US.UTF-8 |
89 | 89 |
|
90 | 90 | WORKDIR "/app" |
91 | 91 | RUN chown nobody /app |
|
0 commit comments