From 946ab8dd8082b3bc7915611ffddd8212498d9f02 Mon Sep 17 00:00:00 2001 From: proJM <81658610+proJM-Coding@users.noreply.github.com> Date: Thu, 3 Jul 2025 16:12:44 +0930 Subject: [PATCH 1/2] Add docker instructions + fix instructions This pr includes the docker instructions from #72 but also includes some corrections to the existing instructions. It now details cloning the source code and moving into it but most importantly a critical step where the Containerfile needs to be copied to the root of the project folder to correctly build --- INSTALL.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index 628eed2..921c335 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -66,10 +66,20 @@ Alternatively a Containerfile is provided as well for convenience. The image can be built with either [podman](https://podman.io/) or [docker](https://www.docker.com/). +First you will need to clone the repo and cd into it. +You will need to copy the Containerfile to the root of the project folder too: + +``` +git clone https://github.com/progval/matrix2051.git +cd matrix2051 +cp dist/Containerfile Dockerfile +``` + +## Podman To build it: ``` -podman build -t matrix2051 --file dist/Containerfile . +podman build -t matrix2051 --file Containerfile . ``` To run it: @@ -77,3 +87,16 @@ To run it: ``` podman run --publish 2051:2051 --interactive matrix2051 ``` + +## Docker +To build it: + +``` +docker build -t matrix2051 . +``` + +To run it: + +``` +docker run -p 2051:2051 -it matrix2051 +``` From 26e1e14d10d21508e780de7c8b4e1adb8e1c9d0f Mon Sep 17 00:00:00 2001 From: proJM <81658610+proJM-Coding@users.noreply.github.com> Date: Thu, 3 Jul 2025 16:14:30 +0930 Subject: [PATCH 2/2] Update Containerfile --- dist/Containerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/Containerfile b/dist/Containerfile index ecfe27b..a02b860 100644 --- a/dist/Containerfile +++ b/dist/Containerfile @@ -6,7 +6,7 @@ RUN apk add --update --no-cache elixir WORKDIR /app -COPY ../ /app +COPY . /app RUN mix deps.get RUN mix release