diff --git a/Dockerfile b/Dockerfile index e94f1ac..40f7983 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ RUN mkdir /export && \ cp -r _build/prod/rel/deutexrium/ /export # deploy -FROM alpine:3.16 +FROM bitwalker/alpine-elixir:1.14 ENV REPLACE_OS_VARS=true ENV RELEASE_NODE=deuterium @@ -25,6 +25,10 @@ RUN mkdir -p /opt/app COPY --from=build /export/ /opt/app RUN apk add libstdc++ libgcc ncurses-libs libexecinfo +RUN printf "-kernel inet_dist_listen_min 25565 inet_dist_listen_max 25565" > vm.args +ENV RELEASE_VM_ARGS=vm.args + EXPOSE 4369 +EXPOSE 25565 ENTRYPOINT ["/opt/app/deutexrium/bin/deutexrium"] CMD ["start"] diff --git a/README.md b/README.md index 790a961..d8c1769 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Please note that Deuterium uses a [custom permissive license](LICENSE.md). It's This app is dockerized, so it can be deployed in a few simple steps: 1. Create the data volume: `docker volume create --driver local --opt type=none --opt device=/path/on/the/host/where/data/will/be/stored --opt o=bind deut_data` 2. Save your Discord bot token: `printf "DEUTEX_TOKEN=Y0uЯ-t0k3n" > .env` - 3. Pull the image: `docker pull ghcr.io/portasynthinca3/deutexrium:2.0.3` + 3. Pull the image: `docker pull ghcr.io/portasynthinca3/deutexrium:2.0.4` 4. Run the container: `docker run --mount source=deut_data,target=/var/deutexrium --env-file .env -d deutexrium` To connect an IEx shell to a locally running container: diff --git a/mix.exs b/mix.exs index b09846e..61887ca 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Deutexrium.MixProject do def project do [ app: :deutexrium, - version: "2.0.3", + version: "2.0.4", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps(),