Skip to content

Commit

Permalink
fix: make node port static
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Antonenko committed Jan 10, 2023
1 parent ea99535 commit a7aa5d1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ 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
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"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit a7aa5d1

Please sign in to comment.