Skip to content

Commit

Permalink
fix env names
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Dec 20, 2024
1 parent b8e0a32 commit 2002c2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Dockerfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ FROM hexpm/elixir:${ELIXIR_DOCKER_IMAGE} as builder
ARG FLAVOUR
ARG FLAVOUR_PATH
ARG FORKS_TO_COPY_PATH
ARG ENABLE_AI
ARG ENABLE_IMAGE_VIX
ARG WITH_AI
ARG WITH_IMAGE_VIX

# necessary utils + dependencies
COPY --link deps-alpine.sh ./
Expand All @@ -21,8 +21,9 @@ RUN sh deps-alpine-build.sh

# RUN apk --update add tar curl git rust cargo npm yarn bash make gcc libc-dev openssl-dev

ENV HOME=/opt/app/ TERM=xterm MIX_ENV=prod FLAVOUR_PATH=./ ENABLE_AI=$ENABLE_AI ENABLE_IMAGE_VIX=$ENABLE_IMAGE_VIX XLA_BUILD=true
# Note: XLA_BUILD is set to true to compile XLA (use for some AI features) to avoid an error like "no precompiled XLA archive available for this target: x86_64-linux-musl-cpu" (or aarch64-linux-musl-cpu)
ENV HOME=/opt/app/ TERM=xterm MIX_ENV=prod FLAVOUR_PATH=./ WITH_AI=$WITH_AI WITH_IMAGE_VIX=$WITH_IMAGE_VIX
# XLA_BUILD=true
# Note: we may want to set XLA_BUILD to true to compile XLA (use for some AI features) to avoid an error like "no precompiled XLA archive available for this target: x86_64-linux-musl-cpu" (or aarch64-linux-musl-cpu), but this requires the bazel build tool not available in alpine repos yet
WORKDIR $HOME

# Prepare elixir deps
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ defmodule Bonfire.Umbrella.MixProject do
# TODO: put these in ENV or an external writeable config file similar to deps.*
@config [
# note that the flavour will automatically be added where the dash appears
version: "0.9.10-beta.172",
version: "0.9.10-beta.173",
elixir: ">= #{System.get_env("ELIXIR_VERSION", "1.13.4")}",
flavour: @flavour,
default_flavour: @default_flavour,
Expand Down

0 comments on commit 2002c2c

Please sign in to comment.