Skip to content

Commit

Permalink
chore: Dockerfile上で必要なディレクトリを作っておく
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Mar 26, 2024
1 parent eb874cb commit b1de00f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ FROM ubuntu:22.04
LABEL org.opencontainers.image.source=https://github.com/GiganticMinecraft/seichiassist-downloader
RUN apt-get update -y && \
apt-get install -y git curl gnupg openjdk-17-jdk && \
git clone --recursive https://github.com/GiganticMinecraft/SeichiAssist.git && \
chmod +xwr SeichiAssist
git clone --recursive https://github.com/GiganticMinecraft/SeichiAssist.git

# sbt 公式リポジトリを追加
RUN echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | tee /etc/apt/sources.list.d/sbt.list && \
Expand All @@ -32,7 +31,10 @@ RUN echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | tee /etc/ap
RUN apt-get update && \
apt-get install -y sbt

# ロケールをUTF-8に設定する
# 必要なディレクトリを作っておく
RUN mkdir -p /SeichiAssist/target/build/ /builds/stable /builds/develop

# ロケールをUTF-8に設定する (SeichiAssistにギリシャ文字(λ)が含まれているため、デフォルト状態ではビルドsエラーが出る)
ENV LANG C.UTF-8

COPY --from=build-env --link /app/target/release/seichiassist-downloader /
Expand Down

0 comments on commit b1de00f

Please sign in to comment.