Speed up deploy times
Deploy with Docker Compose / deploy (push) Successful in 5m30s

This commit is contained in:
2026-08-18 17:27:48 +01:00
parent 557f92b39a
commit 64672dfdc8
5 changed files with 30 additions and 13 deletions
+5 -2
View File
@@ -4,14 +4,17 @@ RUN rustup target add wasm32-unknown-unknown \
&& cargo install wasm-pack
WORKDIR /wasm
COPY crates/stp_wasm/ crates/stp_wasm/
RUN wasm-pack build crates/stp_wasm --target web --out-dir ../../src/wasm
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/wasm/crates/stp_wasm/target \
wasm-pack build crates/stp_wasm --target web --out-dir ../../src/wasm
# Stage 2: Build Vue frontend
FROM node:22-slim
RUN apt-get update && apt-get install -y make git && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
RUN --mount=type=cache,target=/root/.npm \
npm ci
COPY . .
COPY --from=wasm-builder /wasm/src/wasm/ src/wasm/
CMD ["sh", "-c", "npx vite build --outDir /output --emptyOutDir"]
+6 -6
View File
@@ -31,9 +31,8 @@ import Project from "./Project.vue";
frontends to the self-hosted infrastructure they run on.
<a href="/pdf/dissertation.pdf">Dissertation</a> proved
<a href="/automata">Mobile Automata</a> are computationally
equivalent to Turing
Machines. Integrates AI tooling (Claude Code) into everyday
development.
equivalent to Turing Machines. Integrates AI tooling (Claude
Code) into everyday development.
</p>
</section>
@@ -109,6 +108,7 @@ import Project from "./Project.vue";
Introduction to Rings and Fields with
Applications
</li>
<li>Real Analysis</li>
</ul>
</div>
</div>
@@ -200,9 +200,9 @@ import Project from "./Project.vue";
</template>
<p contenteditable="true">
Research project on
<a href="/automata">Mobile Automata</a>: data visualisation
in Mathematica, presented to the Wolfram community.
Groundwork for the dissertation above.
<a href="/automata">Mobile Automata</a>: data
visualisation in Mathematica, presented to the Wolfram
community. Groundwork for the dissertation above.
</p>
</Project>
</section>