Fix Docker OpenSSL compatibility and deprecation warnings
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
- Add OpenSSL 3.x libraries to runtime stage (libcrypto3, libssl3, openssl-dev) - Fix deprecation warning by adding parentheses to function calls in release.ex - Resolves crypto library loading errors in Docker container 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
4e056a7202
commit
9b55c6e446
2 changed files with 10 additions and 3 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -39,8 +39,15 @@ RUN mix release
|
||||||
# App stage
|
# App stage
|
||||||
FROM alpine:3.19 AS app
|
FROM alpine:3.19 AS app
|
||||||
|
|
||||||
# Install runtime dependencies
|
# Install runtime dependencies including OpenSSL 3.x
|
||||||
RUN apk add --no-cache libstdc++ openssl ncurses-libs
|
RUN apk add --no-cache \
|
||||||
|
libstdc++ \
|
||||||
|
openssl \
|
||||||
|
openssl-dev \
|
||||||
|
ncurses-libs \
|
||||||
|
libgcc \
|
||||||
|
libcrypto3 \
|
||||||
|
libssl3
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ defmodule MyFirstElixirVibeCode.Release do
|
||||||
load_app()
|
load_app()
|
||||||
|
|
||||||
for repo <- repos() do
|
for repo <- repos() do
|
||||||
case repo.__adapter__.storage_up(repo.config) do
|
case repo.__adapter__().storage_up(repo.config()) do
|
||||||
:ok -> IO.puts("Database created for #{inspect(repo)}")
|
:ok -> IO.puts("Database created for #{inspect(repo)}")
|
||||||
{:error, :already_up} -> IO.puts("Database already exists for #{inspect(repo)}")
|
{:error, :already_up} -> IO.puts("Database already exists for #{inspect(repo)}")
|
||||||
{:error, term} -> IO.puts("Error creating database: #{inspect(term)}")
|
{:error, term} -> IO.puts("Error creating database: #{inspect(term)}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue