mix_docker
mix_docker copied to clipboard
Put your Elixir app production release inside minimal docker image
In my config, I add the path for my release just like in https://github.com/Recruitee/mix_docker#how-to-move-the-dockerfiles ```elixir config :mix_docker, image: "path/to/image", tag: "{app}_{mix-version}_{git-sha}", dockerfile_release: "release/Dockerfile.release" ``` And when I try to do...
``` #Dockerfile.release FROM bitwalker/alpine-elixir:latest # install gcc make RUN set -x\ && apk add --no-cache\ gcc\ make\ musl-dev EXPOSE 8000 ENV PORT=8000 MIX_ENV=prod REPLACE_OS_VARS=true SHELL=/bin/bash WORKDIR /app COPY ./myapp.tar.gz ./...
Suggest to use `alpine-elixir-phoenix:1.5.2` for build and `alpine-erlang:20.1` for release.
Thanks for this amazing library. I'm including PR to this issue I've noticed that the `Dockerfile.build` points to Alpine edge repo. The pages versions there were changed and this caused...
Is it possible to use `publish` to push to a user/password protected private repo? I tried to use `docker login` before `docker.publish` but it fails with `no basic auth credentials`
I have a top level umbrella_app with 2 sub-apps: sub_app1 and sub_app2. I would like to carry out `mix docker.build` and `mix docker.release` for each sub-app separately, each using a...
``` 19:28:33.570 [error] Loading of /opt/app/_build/prod/lib/cowboy/ebin/cowboy_websocket_handler.beam failed: :badfile 19:28:33.570 [error] beam/beam_load.c(1287): Error loading module cowboy_websocket_handler: mandatory chunk of type 'Atom' not found warning: behaviour :cowboy_websocket_handler is undefined lib/phoenix/endpoint/cowboy_websocket.ex:1 warning: function...
resolve #46
Right now when building the release image the `#{app}.tar.gz` is copied into the project's root folder and stays there after the build is complete. It would be better to remove...
This PR hopefully works. I use a `docker` MIX_ENV and release env, different from the `prod` env.