Skip to content

Commit 446dc7c

Browse files
authoredApr 8, 2024··
Remove just from container (#403)
1 parent d34f72a commit 446dc7c

File tree

2 files changed

+1
-36
lines changed

2 files changed

+1
-36
lines changed
 

‎.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ docker-compose*
88
chart/
99
Dockerfile
1010
docker-compose*
11+
./venv/

‎Dockerfile

-36
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,3 @@
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-
341
#.--.---.-.-.-.-.----.-..-.---..-------.-.--.-.-..-.-.-.-.-.-..--.-
352
FROM python:3.11-alpine as b2v
363
#.--.---.-.-.-.-.----.-..-.---..-------.-.--.-.-..-.-.-.-.-.-..--.-
@@ -50,7 +17,6 @@ RUN git config --system init.defaultBranch main
5017
ENTRYPOINT ["bump2version"]
5118

5219
#.--.---.-.-.-.-.----.-..-.---..-------.-.--.-.-..-.-.-.-.-.-..--.-
53-
FROM registry.revsys.com/just as j
5420
FROM revolutionsystems/python:3.11-wee-lto-optimized as runner
5521
#.--.---.-.-.-.-.----.-..-.---..-------.-.--.-.-..-.-.-.-.-.-..--.-
5622

@@ -59,8 +25,6 @@ ENV PYTHONUNBUFFERED 1
5925
ENV PYTHON_PATH /code
6026
ENV PATH /.venv/bin:/node/bin:${PATH}
6127

62-
COPY --from=j /just /usr/bin/just
63-
6428
WORKDIR /code
6529

6630
#.--.---.-.-.-.-.----.-..-.---..-------.-.--.-.-..-.-.-.-.-.-..--.-

0 commit comments

Comments
 (0)
Please sign in to comment.