|
|
|
@ -15,15 +15,12 @@ COPY . . |
|
|
|
|
|
|
|
|
|
|
|
# Compile the application |
|
|
|
# Compile the application |
|
|
|
RUN mix local.hex --force && mix local.rebar --force |
|
|
|
RUN mix local.hex --force && mix local.rebar --force |
|
|
|
RUN mix deps.get |
|
|
|
RUN mix deps.get --only prod |
|
|
|
RUN MIX_ENV=prod mix compile |
|
|
|
RUN MIX_ENV=prod mix compile |
|
|
|
|
|
|
|
|
|
|
|
# Update the static Swagger documentation |
|
|
|
# Update the static Swagger documentation |
|
|
|
RUN MIX_ENV=prod mix phx.swagger.generate |
|
|
|
RUN MIX_ENV=prod mix phx.swagger.generate |
|
|
|
|
|
|
|
|
|
|
|
# Compile application static assets |
|
|
|
|
|
|
|
RUN MIX_ENV=prod mix assets.deploy |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Set the locale |
|
|
|
# Set the locale |
|
|
|
ENV LANG=en_US.UTF-8 |
|
|
|
ENV LANG=en_US.UTF-8 |
|
|
|
ENV LANGUAGE=en_US:en |
|
|
|
ENV LANGUAGE=en_US:en |
|
|
|
|