Skip to content

fix(docker-compose-dev): correct permissions so git can read tags #708

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 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,13 @@ 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
RUN mkdir /home/aleph
RUN chown -R aleph:aleph /home/aleph

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

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