Skip to content

Commit

Permalink
source python env in run
Browse files Browse the repository at this point in the history
  • Loading branch information
ike committed Jan 17, 2024
1 parent b1202ca commit 4fe86b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apk add --update \
bash \
python3 \
libressl-dev \
py3-pip \
pipx \
curl \
gnupg \
unzip \
Expand Down Expand Up @@ -59,10 +59,12 @@ RUN mkdir adobe-fonts
RUN find $PWD/ -name "*.ttf" -exec install -m644 {} adobe-fonts/ \; || return 1
RUN rm -rf $PWD/source*

RUN pip install dicttoxml2 --break-system-packages

FROM base_${WITH_CERT} as pandoc_base

ENV PATH /root/.py-env:$PATH
RUN python3 -m venv /root/.py-env --system-site-packages
RUN /root/.py-env/bin/pip install dicttoxml2

#install Pandoc
RUN adduser -s /bin/bash -g "pandoc" -D pandoc

Expand Down
2 changes: 2 additions & 0 deletions docker/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#! /bin/bash

. ~/.py-env/bin/activate

case $TARGET in
4.0)
./generate-all.sh $LANGS
Expand Down

0 comments on commit 4fe86b7

Please sign in to comment.