mirror of
https://github.com/mirego/accent.git
synced 2024-09-11 10:55:28 +03:00
Fix docker build
This commit is contained in:
parent
eefcb23037
commit
0c1cea5951
@ -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 .
|
||||
|
@ -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"
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user