2024-05-01 01:37:20 +08:00
|
|
|
FROM alpine:3.19
|
2022-11-02 07:38:46 +08:00
|
|
|
LABEL org.opencontainers.image.source=https://github.com/fish-shell/fish-shell
|
2021-05-14 01:59:45 +08:00
|
|
|
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
ENV LC_ALL C.UTF-8
|
|
|
|
|
2022-10-24 02:30:26 +08:00
|
|
|
RUN apk add --no-cache \
|
|
|
|
bash \
|
|
|
|
cmake \
|
|
|
|
g++ \
|
|
|
|
gettext-dev \
|
|
|
|
git \
|
|
|
|
libintl \
|
|
|
|
musl-dev \
|
|
|
|
ninja \
|
|
|
|
pcre2-dev \
|
|
|
|
python3 \
|
2024-05-01 01:37:20 +08:00
|
|
|
py3-pexpect \
|
|
|
|
cargo
|
2021-05-14 01:59:45 +08:00
|
|
|
|
|
|
|
RUN addgroup -g 1000 fishuser
|
|
|
|
|
|
|
|
RUN adduser \
|
|
|
|
--disabled-password \
|
|
|
|
--gecos "" \
|
|
|
|
--home "/home/fishuser" \
|
|
|
|
--ingroup fishuser \
|
|
|
|
--uid 1000 \
|
|
|
|
fishuser
|
|
|
|
|
|
|
|
RUN mkdir -p /home/fishuser/fish-build \
|
|
|
|
&& mkdir /fish-source \
|
|
|
|
&& chown -R fishuser:fishuser /home/fishuser /fish-source
|
|
|
|
|
|
|
|
USER fishuser
|
|
|
|
WORKDIR /home/fishuser
|
|
|
|
|
|
|
|
COPY fish_run_tests.sh /
|
|
|
|
|
|
|
|
CMD /fish_run_tests.sh
|