Skip to content

Commit

Permalink
Add Containerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AnInternetTroll authored and progval committed Apr 9, 2024
1 parent bb79c7d commit c2c7744
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM docker.io/alpine:3.19

ENV MIX_ENV=prod

RUN apk add --update --no-cache elixir

WORKDIR /app

COPY . /app

RUN mix deps.get
RUN mix release

CMD _build/prod/rel/matrix2051/bin/matrix2051 start
18 changes: 18 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,21 @@ This does the following:
* Create a temporary user to run the process as
* Makes sure the process can't write any file on the system or gain new capabilities
(implied by `DynamicUser=true`)

# Running matrix2051 as a container

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/).

To build it:

```
podman build -t matrix2051 .
```

To run it:

```
podman run --publish 2051:2051 --interactive matrix2051
```

0 comments on commit c2c7744

Please sign in to comment.