-
Notifications
You must be signed in to change notification settings - Fork 166
/
Copy pathDockerfile.dev
30 lines (22 loc) · 1007 Bytes
/
Dockerfile.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM node:18
SHELL ["/bin/bash", "-c"]
# Install build-essential, llvm, clang, curl, python and python3-pip
RUN echo 'Installing build-essential, llvm, clang, curl, python and python3-pip...' && apt-get update && \
apt-get install -y \
build-essential \
llvm\
clang \
curl \
python-is-python3 \
python3-pip
# Install rustup
RUN echo 'Installing rustup...' && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# Install wasm-pack
RUN echo 'Installing wasm-pack...' && curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
# Install wasm32-unknown-unknown target
RUN echo 'Installing wasm32-unknown-unknown target...' && rustup target add wasm32-unknown-unknown
# Install cargo-watch
RUN echo 'Installing cargo-watch...' && cargo install cargo-watch
WORKDIR /quadratic
CMD ["bash", "-c", "source ~/.bashrc && npm install --no-audit --no-fund && npm run compile --workspace=quadratic-shared && npm run dev:docker"]