This repository was archived by the owner on Feb 8, 2025. It is now read-only.
File tree 4 files changed +16
-5
lines changed
4 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 35
35
uses : docker/build-push-action@v3
36
36
with :
37
37
context : .
38
- platforms : linux/amd64
39
38
push : false
40
39
build-args : |
41
40
VERSION=latest
41
+ tags : |
42
+ ${{ github.event.repository.name }}:${{ github.sha }}
Original file line number Diff line number Diff line change
1
+ 1.0.1 (2023-11-14)
2
+
3
+ * add fmt
4
+ * add clippy
5
+ * add rust-analyzer
6
+
1
7
1.0.0 (2023-11-08)
2
8
3
9
* initial rust container
Original file line number Diff line number Diff line change @@ -65,12 +65,17 @@ ENV PATH ${NVM_NODE_PATH}/bin:$PATH
65
65
RUN npm install npm -g
66
66
RUN npm install yarn -g
67
67
68
-
68
+ ENV USER=xmtp
69
69
# # Rust from builder
70
- COPY --chown=xmtp:xmtp --from=builder /home/xmtp /.cargo /home/xmtp /.cargo
71
- COPY --chown=xmtp:xmtp --from=builder /home/xmtp /.rustup /home/xmtp /.rustup
70
+ COPY --chown=${USER}:${USER} --from=builder /home/${USER} /.cargo /home/${USER} /.cargo
71
+ COPY --chown=${USER}:${USER} --from=builder /home/${USER} /.rustup /home/${USER} /.rustup
72
72
73
+ ENV PATH=/home/${USER}/.cargo/bin:$PATH
73
74
USER xmtp
75
+ RUN rustup toolchain install stable
76
+ RUN rustup component add rustfmt
77
+ RUN rustup component add clippy
78
+ RUN rustup component add rust-analyzer
74
79
75
80
LABEL org.label-schema.build-date=$BUILD_DATE \
76
81
org.label-schema.name="rust" \
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ Everything needed to Rust and Protocol buffers from stable toolchain.
34
34
- BuildKit TARGETARCH
35
35
` $ DOCKER_BUILDKIT=1 docker build . -t ... `
36
36
37
-
38
37
## arm64
39
38
40
39
To build locally, run:
You can’t perform that action at this time.
0 commit comments