Skip to content

Commit

Permalink
some improves
Browse files Browse the repository at this point in the history
  • Loading branch information
joaovitorsilvestre committed Nov 30, 2022
1 parent d66e254 commit 830be42
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
src/_compiled
/example/
**/erl_crash.dump
lib/fy_doc/_env
lib/fython/site
bootstraped
14 changes: 8 additions & 6 deletions devtools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,19 @@ CMD echo "Compiling $FOLDER" \

FROM base as fydoc

ENV FOLDER="MUST_BE_GIVEN"

ENV FYDOC_PATH="/lib/fydoc"
COPY /lib/fydoc $FYDOC_PATH

# Install python to use for docs
RUN apt update && \
RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
--mount=target=/var/cache/apt,type=cache,sharing=locked \
apt update && \
apt install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
apt install -y python3.9 python3-pip

ENV FOLDER="MUST_BE_GIVEN"

ENV FYDOC_PATH="/lib/fydoc"
COPY /lib/fydoc $FYDOC_PATH

RUN pip3 install -r $FYDOC_PATH/mkdocs/requirements.txt

RUN /fython exec "Core.Code.compile_project('$FYDOC_PATH')" $DESTINE_PATH
Expand Down

0 comments on commit 830be42

Please sign in to comment.