Skip to content

Commit

Permalink
fix(docker-compose-dev): correct permissions so git can read tags
Browse files Browse the repository at this point in the history
"git tag" is called (I think by hatch?) but git complains that it
doesn't have the right permissions for this folder, therefor pyaleph
refuses to start.
  • Loading branch information
Psycojoker committed Feb 21, 2025
1 parent 8803c55 commit 2bd9f2e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deployment/docker-build/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ RUN pip install hatch

FROM base

COPY --from=builder /opt/venv /opt/venv
COPY --from=builder /opt/pyaleph /opt/pyaleph
RUN useradd -s /bin/bash aleph

COPY --from=builder --chown=aleph /opt/venv /opt/venv
COPY --from=builder --chown=aleph /opt/pyaleph /opt/pyaleph

RUN apt-get update && apt-get install -y \
libsodium23 \
Expand All @@ -72,9 +74,11 @@ COPY ./deployment/docker-build/openssl.cnf.patch /etc/ssl/openssl.cnf.patch
RUN patch /etc/ssl/openssl.cnf /etc/ssl/openssl.cnf.patch

RUN mkdir /var/lib/pyaleph
RUN chown -R aleph:aleph /var/lib/pyaleph

ENV PATH="/opt/venv/bin:${PATH}"
WORKDIR /opt/pyaleph
USER aleph

RUN hatch build
ENTRYPOINT ["bash", "deployment/scripts/run_aleph_ccn.sh"]

0 comments on commit 2bd9f2e

Please sign in to comment.