Packages

Arke project generator. Provides a `mix arke.new` task to bootstrap a new Elixir application with Arke dependencies.

Current section

Files

Jump to
arke_new templates arke_single Dockerfile
Raw

templates/arke_single/Dockerfile

FROM elixir:1.13.3-alpine
ENV MIX_ENV=prod
RUN apk update && \
apk add postgresql-client build-base
# Create app directory and copy the Elixir projects into it.
RUN mkdir /app
COPY . /app
WORKDIR /app
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
# Install Hex package manager.
RUN mix local.hex --force
RUN mix local.rebar --force
# Compile the project.
RUN mix deps.get && mix deps.compile && mix do compile
CMD ["/app/entrypoint.sh"]˝