Skip to content

Commit

Permalink
Install a3m in Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Sep 24, 2024
1 parent f929ae2 commit db9dd63
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
!/requirements*
!/a3m/**
!/.python-version
!/pyproject.toml
!/README.rst
!/LICENSE

**/*~
**/*.log
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ See the fragment files in the `changelog.d directory`_.

.. scriv-insert-here
.. _changelog-0.7.15:

0.7.15 - 2024-09-24
===================

Fixed
-----

- Install a3m in Docker environment.

.. _changelog-0.7.14:

0.7.14 - 2024-09-05
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ RUN set -ex \

FROM base AS a3m

USER a3m

ARG DJANGO_SETTINGS_MODULE=a3m.settings.common
ENV DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE}
ENV PYENV_ROOT="/home/a3m/.pyenv"
Expand All @@ -117,12 +115,16 @@ RUN set -ex \

COPY ./requirements.txt /a3m/requirements.txt
COPY ./requirements-dev.txt /a3m/requirements-dev.txt
COPY ./pyproject.toml /a3m/pyproject.toml
RUN set -ex \
&& pyenv exec python3 -m pip install --upgrade pip setuptools \
&& pyenv exec python3 -m pip install --requirement ${REQUIREMENTS} \
&& pyenv rehash

COPY . /a3m
WORKDIR /a3m
RUN pip install . --no-deps

USER a3m

ENTRYPOINT ["python", "-m", "a3m.cli.server"]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespaces = false

[project]
name = "a3m"
version = "0.7.14"
version = "0.7.15"
description = "Lightweight Archivematica"
requires-python = ">=3.11"
readme = "README.rst"
Expand Down

0 comments on commit db9dd63

Please sign in to comment.