eternal-flame-AD
6e8add8f70
Some checks failed
Check the description in CHANGELOG.md / check-changelog (pull_request) Has been cancelled
Check SPDX-License-Identifier / check-spdx-license-id (pull_request) Has been cancelled
Dockle / dockle (pull_request) Has been cancelled
Test (production install and build) / production (20.16.0) (pull_request) Has been cancelled
Pull Request Labeler / triage (pull_request) Has been cancelled
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
24 lines
535 B
Docker
24 lines
535 B
Docker
FROM archlinux AS builder
|
|
|
|
RUN pacman -Sy --noconfirm \
|
|
base-devel \
|
|
git
|
|
|
|
RUN curl -sSL https://sh.rustup.rs | bash -s -- -y --default-toolchain nightly
|
|
|
|
COPY . /src
|
|
|
|
RUN cd /src && bash -c '. $HOME/.cargo/env; cargo build --release' && \
|
|
mkdir -p /target/usr/local/bin && cp /src/target/release/nyuukyou /target/usr/local/bin/nyuukyou
|
|
|
|
FROM archlinux
|
|
|
|
COPY --from=builder /target/ /
|
|
|
|
RUN pacman -Sy --noconfirm curl && \
|
|
useradd -m -u 1000 -r nyuukyou
|
|
|
|
USER nyuukyou
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/nyuukyou" ]
|
|
|