Fix docker build

This commit is contained in:
Simon Prévost 2021-06-08 12:27:59 -04:00
parent eefcb23037
commit 0c1cea5951
3 changed files with 7 additions and 7 deletions

View File

@ -32,7 +32,7 @@ RUN rebar3 compile
#
# Build the OTP binary
#
FROM hexpm/elixir:1.11.2-erlang-23.1.1-alpine-3.12.0 AS builder
FROM hexpm/elixir:1.12.1-erlang-24.0.2-alpine-3.13.3 AS builder
ENV MIX_ENV=prod
@ -73,11 +73,11 @@ RUN mkdir -p /opt/build && \
#
# Build a lean runtime container
#
FROM alpine:3.12.0
FROM alpine:3.13.3
RUN apk --no-cache update && \
apk --no-cache upgrade && \
apk --no-cache add bash yaml-dev
apk --no-cache add bash yaml-dev openssl ncurses-libs libstdc++
WORKDIR /opt/accent
COPY --from=builder /opt/build .

View File

@ -32,6 +32,9 @@ config :tesla,
auth_enabled: true,
adapter: Tesla.Adapter.Hackney
config :sentry,
release: version
config :ueberauth, Ueberauth, providers: []
import_config "#{Mix.env()}.exs"

View File

@ -1,7 +1,5 @@
import Config
version = Mix.Project.config()[:version]
defmodule Utilities do
def string_to_boolean("true"), do: true
def string_to_boolean("1"), do: true
@ -116,8 +114,7 @@ else
dsn: System.get_env("SENTRY_DSN"),
environment_name: System.get_env("SENTRY_ENVIRONMENT_NAME"),
included_environments: ~w(prod production),
root_source_code_path: File.cwd!(),
release: version
root_source_code_path: File.cwd!()
end
config :accent, Accent.Mailer,