-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add pandoc install to Dockerfile #27
Conversation
ENV PANDOC_VERSION 3.1.2 | ||
ENV PANDOC_DOWNLOAD_URL https://github.com/jgm/pandoc/releases/download/$PANDOC_VERSION/pandoc-$PANDOC_VERSION-linux-$TARGETARCH.tar.gz | ||
ENV PANDOC_ROOT /usr/local/bin/pandoc | ||
RUN wget -qO- "$PANDOC_DOWNLOAD_URL" | tar -xzf - && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ENV PANDOC_VERSION 3.1.2 | ||
ENV PANDOC_DOWNLOAD_URL https://github.com/jgm/pandoc/releases/download/$PANDOC_VERSION/pandoc-$PANDOC_VERSION-linux-$TARGETARCH.tar.gz | ||
ENV PANDOC_ROOT /usr/local/bin/pandoc | ||
RUN wget -qO- "$PANDOC_DOWNLOAD_URL" | tar -xzf - && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dockerfile
Outdated
rm -Rf pandoc-$PANDOC_VERSION/ | ||
|
||
# Install Pandocfilter | ||
COPY requirements.txt ./ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dockerfile
Outdated
|
||
# Install Pandocfilter | ||
COPY requirements.txt ./ | ||
RUN pip install --upgrade pip && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dockerfile
Outdated
|
||
# Install Pandocfilter | ||
COPY requirements.txt ./ | ||
RUN pip install --upgrade pip && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -46,6 +43,7 @@ RUN cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime && \ | |||
echo 'Asia/Tokyo' > /etc/timezone | |||
|
|||
# Install TeXLive | |||
ENV TEXLIVE_PATH /usr/local/texlive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
利用する直前に移動させることで、このENV
を編集してdocker build
のやり直しになるレイヤーを削減する。
ARG TARGETARCH | ||
|
||
# Install Pandoc | ||
ENV PANDOC_VERSION 3.1.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dockerfile
Outdated
pip install -r requirements.txt && \ | ||
rm requirements.txt | ||
|
||
ENV PATH $TEXLIVE_PATH/bin/x86_64-linux:$TEXLIVE_PATH/bin/aarch64-linux:$PATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aarch64
にも(雑に?)対応させた。
0b0542e
to
dbbf295
Compare
@@ -12,7 +12,7 @@ name: CI | |||
jobs: | |||
build-image: | |||
name: Build and push image | |||
runs-on: ubuntu-18.04 | |||
runs-on: ubuntu-latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一生はじまらないのでubuntu-latest
にした。2022年12月に消えてるっぽい。
dbbf295
to
eb03c9f
Compare
83daa03
to
621f606
Compare
mergeしちゃいます |
👀 WORD-COINS/article-template#71