Skip to content

Commit

Permalink
README, Dockerfile: Update to support version in footer
Browse files Browse the repository at this point in the history
  • Loading branch information
fstachura committed Oct 7, 2024
1 parent 547877a commit 3923b4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,11 @@ where all repositories are found.
Dockerfiles are provided in the `docker/` directory.
To build the image, run the following commands:

# git clone https://github.com/bootlin/elixir
# docker build -t elixir -f ./elixir/docker/Dockerfile ./elixir/
# git clone https://github.com/bootlin/elixir.git ./elixir
# docker build -t elixir --build-arg ELIXIR_VERSION=`git rev-parse --short HEAD` ./elixir/Dockerfile ./elixir

ELIXIR_VER build argument is optional. Since .git directory is not copied into Docker image by default,
the option is used to pass a version string to Elixir.

You can then run the image using `docker run`.
Here we mount a host directory as Elixir data:
Expand Down
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,7 @@ RUN a2enmod rewrite

EXPOSE 80

ARG ELIXIR_VERSION
ENV ELIXIR_VERSION=$ELIXIR_VERSION

ENTRYPOINT ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]

0 comments on commit 3923b4c

Please sign in to comment.