Skip to content

Commit

Permalink
arch指定を変更してみる
Browse files Browse the repository at this point in the history
  • Loading branch information
Till0196 committed Nov 12, 2024
1 parent aa408ba commit 5dcd27d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ FROM ubuntu:noble AS base
ARG TARGETARCH

FROM base AS build-arm64
ENV PLATFORM aarch64-linux
ENV AWS_CLI_ARCH linux-aarch64
ENV TEX_LIVE_ARCH aarch64-linux

FROM base AS build-amd64
ENV PLATFORM x86_64-linux
ENV AWS_CLI_ARCH linux-x86_64
ENV TEX_LIVE_ARCH x86_64-linux

# WORD内部向けコンテナなので、何か問題が有ったらSlack上で通知して下さい。
LABEL maintainer="Totsugekitai <[email protected]>"
Expand All @@ -31,7 +33,7 @@ RUN apt-get update && \
tzdata $PERSISTENT_DEPS

# install awscliv2
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
RUN curl "https://awscli.amazonaws.com/awscli-exe-$AWS_CLI_ARCH.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
rm -r ./aws awscliv2.zip
Expand Down Expand Up @@ -73,7 +75,7 @@ RUN echo "Set PATH to $PATH" && \
$(find /usr/local/texlive -name tlmgr) path add

ENV TEX_LIVE_VERSION 2024
ENV PATH /usr/local/texlive/$TEX_LIVE_VERSION/bin/$PLATFORM:$PATH
ENV PATH /usr/local/texlive/$TEX_LIVE_VERSION/bin/$TEX_LIVE_ARCH:$PATH

# tlmgr section
RUN tlmgr update --self
Expand Down

0 comments on commit 5dcd27d

Please sign in to comment.