Browse Source

Install Hex for runtime user

master
buttercat1791 2 months ago
parent
commit
b36a546b5e
  1. 2
      Dockerfile

2
Dockerfile

@ -19,7 +19,6 @@ WORKDIR /app
COPY . . COPY . .
# Compile the application # Compile the application
ENV MIX_HOME=/app/.mix
RUN mix local.hex --force && mix local.rebar --force RUN mix local.hex --force && mix local.rebar --force
RUN mix deps.get --only prod RUN mix deps.get --only prod
RUN MIX_ENV=prod mix compile RUN MIX_ENV=prod mix compile
@ -29,6 +28,7 @@ RUN MIX_ENV=prod mix phx.swagger.generate
# Run as the isidore-dev user # Run as the isidore-dev user
USER 1008 USER 1008
RUN mix local.hex --force && mix local.rebar --force
# Set environment variables for the application # Set environment variables for the application
ENV PORT=4000 ENV PORT=4000

Loading…
Cancel
Save