File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,7 @@ RUN apt-get update && apt-get install -y \
23
23
git \
24
24
curl
25
25
26
-
27
- # Install Rust toolchain
28
- RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
29
- ENV PATH="/root/.cargo/bin:${PATH}"
30
-
31
- # Install PHP FFI development files
26
+ # Install PHP FFI development files required to interface with Rust for BattleEngine
32
27
RUN apt-get update && apt-get install -y \
33
28
pkg-config \
34
29
libffi-dev
@@ -82,5 +77,10 @@ RUN chmod +x /usr/local/bin/entrypoint && \
82
77
# Switch to www user
83
78
USER www
84
79
80
+ # Setup Rust/Cargo for www user
81
+ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
82
+ . "$HOME/.cargo/env" && \
83
+ echo 'source $HOME/.cargo/env' >> ~/.bashrc
84
+
85
85
# Run entrypoint
86
86
CMD ["/usr/local/bin/entrypoint" ]
You can’t perform that action at this time.
0 commit comments