File tree Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,18 @@ RUN mkdir config
43
43
# to ensure any relevant config change will trigger the dependencies
44
44
# to be re-compiled.
45
45
COPY config/config.exs config/${MIX_ENV}.exs config/
46
- RUN mix deps.compile
47
46
48
- COPY priv priv
47
+ # Install rustup and set the toolchain
48
+ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
49
+ . $HOME/.cargo/env
49
50
50
- COPY lib lib
51
+ # Add .cargo/bin to PATH
52
+ ENV PATH="/root/.cargo/bin:${PATH}"
51
53
52
- COPY assets assets
54
+ RUN rustup install stable
55
+ RUN rustup default stable
56
+ RUN rustup target add wasm32-unknown-unknown
57
+ RUN rustup target add x86_64-unknown-linux-gnu
53
58
54
59
# Install nvm
55
60
ENV NVM_DIR /usr/local/nvm
@@ -69,12 +74,16 @@ ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
69
74
RUN node --version
70
75
RUN npm --version
71
76
72
- # Install rustup and set the toolchain
73
- RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
74
- source $HOME/.cargo/env && \
75
- rustup install nightly-2022-07-24 && \
76
- rustup default nightly-2022-07-24 && \
77
- rustup target add wasm32-unknown-unknown
77
+ # Compile deps
78
+ # RUN mix deps.compile blake3 --force
79
+ # RUN mix deps.compile
80
+
81
+ COPY priv priv
82
+
83
+ COPY lib lib
84
+
85
+ COPY assets assets
86
+
78
87
79
88
# compile assets
80
89
RUN mix assets.deploy
You can’t perform that action at this time.
0 commit comments