nimblehq / elixir-templates

Our optimized Elixir templates used in our projects
https://nimblehq.co
MIT License
86 stars 6 forks source link

Upgrade alpine to latest version #319

Open Nihisil opened 1 year ago

Nihisil commented 1 year ago

Why

We would like to keep our stack up-to-date.

In this ticket:

Who Benefits?

All template users.

Details

Here was initial attempt to upgrade alpine to 3.17.0 version.

First issue with installing glibc

ERROR: glibc-2.34-r0: trying to overwrite etc/nsswitch.conf owned by alpine-baselayout-data-3.4.0-r0. 1 error; 317 MiB in 56 packages The command '/bin/sh -c apk add glibc-2.34-r0.apk' returned a non-zero code: 1 Service 'build' failed to build : Build failed

It can be fixed with adding --force-overwrite flag

RUN apk add --force-overwrite glibc-2.35-r0.apk

Second issue with installing dart-sass

06:36:10.091 [debug] Downloading dart-sass from https://github.com/sass/dart-sass/releases/download/1.49.11/dart-sass-1.49.11-linux-x64.tar.gz ** (Mix) mix sass app --no-source-map --style=compressed exited with 2 The command '/bin/sh -c mix assets.deploy' returned a non-zero code: 1 Service 'build' failed to build : Build failed