1
- # .--.---.-.-.-.-.----.-..-.---..-------.-.--.-.-..-.-.-.-.-.-..--.-
2
- FROM rust:alpine as just-builder
3
- # .--.---.-.-.-.-.----.-..-.---..-------.-.--.-.-..-.-.-.-.-.-..--.-
4
-
5
- ENV VERSION v0.9.4
6
-
7
- # RUN apt update; apt -y install git --no-install-recommends
8
- RUN apk add git musl-dev
9
- RUN git clone https://github.com/casey/just /just
10
-
11
- WORKDIR /just
12
-
13
- RUN git checkout ${VERSION}
14
-
15
-
16
- RUN RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target x86_64-unknown-linux-musl
17
-
18
- RUN cp target/*/release/just /bin/
19
-
20
-
21
- # .--.---.-.-.-.-.----.-..-.---..-------.-.--.-.-..-.-.-.-.-.-..--.-
22
- FROM alpine as just
23
- # .--.---.-.-.-.-.----.-..-.---..-------.-.--.-.-..-.-.-.-.-.-..--.-
24
-
25
- COPY --from=just-builder /bin/just /
26
-
27
- # ENTRYPOINT ["/bin/sh", "-c"]
28
-
29
- LABEL org.opencontainers.image.source https://github.com/revsys/revsys-nuremberg
30
-
31
- ENTRYPOINT ["/bin/sh" , "-c" ]
32
- CMD ["install -v -m 0755 -t /dist /just && /just --version" ]
33
-
34
1
# .--.---.-.-.-.-.----.-..-.---..-------.-.--.-.-..-.-.-.-.-.-..--.-
35
2
FROM python:3.11-alpine as b2v
36
3
# .--.---.-.-.-.-.----.-..-.---..-------.-.--.-.-..-.-.-.-.-.-..--.-
@@ -50,7 +17,6 @@ RUN git config --system init.defaultBranch main
50
17
ENTRYPOINT ["bump2version" ]
51
18
52
19
# .--.---.-.-.-.-.----.-..-.---..-------.-.--.-.-..-.-.-.-.-.-..--.-
53
- FROM registry.revsys.com/just as j
54
20
FROM revolutionsystems/python:3.11-wee-lto-optimized as runner
55
21
# .--.---.-.-.-.-.----.-..-.---..-------.-.--.-.-..-.-.-.-.-.-..--.-
56
22
@@ -59,8 +25,6 @@ ENV PYTHONUNBUFFERED 1
59
25
ENV PYTHON_PATH /code
60
26
ENV PATH /.venv/bin:/node/bin:${PATH}
61
27
62
- COPY --from=j /just /usr/bin/just
63
-
64
28
WORKDIR /code
65
29
66
30
# .--.---.-.-.-.-.----.-..-.---..-------.-.--.-.-..-.-.-.-.-.-..--.-
0 commit comments