This commit is contained in:
@@ -21,6 +21,7 @@ jobs:
|
|||||||
working-directory: /home/adamf/deploy/web_server
|
working-directory: /home/adamf/deploy/web_server
|
||||||
env:
|
env:
|
||||||
DOCKER_API_VERSION: "1.41"
|
DOCKER_API_VERSION: "1.41"
|
||||||
|
COMPOSE_BAKE: "false"
|
||||||
run: docker compose up -d --build --remove-orphans
|
run: docker compose up -d --build --remove-orphans
|
||||||
|
|
||||||
- name: Prune unused Docker resources
|
- name: Prune unused Docker resources
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ jobs:
|
|||||||
- name: Prune unused Docker images
|
- name: Prune unused Docker images
|
||||||
run: docker image prune -af
|
run: docker image prune -af
|
||||||
|
|
||||||
- name: Prune unused Docker build cache
|
- name: Prune old Docker build cache
|
||||||
run: docker builder prune -af
|
run: docker builder prune -f --filter until=336h
|
||||||
|
|
||||||
- name: Show running containers
|
- name: Show running containers
|
||||||
run: docker compose ps
|
run: docker compose ps
|
||||||
|
|||||||
+16
-3
@@ -1,14 +1,27 @@
|
|||||||
FROM golang:1.25
|
FROM golang:1.25 AS builder
|
||||||
|
|
||||||
WORKDIR /backend
|
WORKDIR /backend
|
||||||
|
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
|
|
||||||
RUN go mod download
|
RUN --mount=type=cache,target=/go/pkg/mod \
|
||||||
|
go mod download
|
||||||
|
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
||||||
RUN go build -o main .
|
RUN --mount=type=cache,target=/go/pkg/mod \
|
||||||
|
--mount=type=cache,target=/root/.cache/go-build \
|
||||||
|
CGO_ENABLED=0 go build -o main .
|
||||||
|
|
||||||
|
FROM debian:bookworm-slim
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install --yes ca-certificates \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
WORKDIR /backend
|
||||||
|
|
||||||
|
COPY --from=builder /backend/main ./main
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
|||||||
+5
-2
@@ -4,14 +4,17 @@ RUN rustup target add wasm32-unknown-unknown \
|
|||||||
&& cargo install wasm-pack
|
&& cargo install wasm-pack
|
||||||
WORKDIR /wasm
|
WORKDIR /wasm
|
||||||
COPY crates/stp_wasm/ crates/stp_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
|
# Stage 2: Build Vue frontend
|
||||||
FROM node:22-slim
|
FROM node:22-slim
|
||||||
RUN apt-get update && apt-get install -y make git && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y make git && rm -rf /var/lib/apt/lists/*
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci
|
RUN --mount=type=cache,target=/root/.npm \
|
||||||
|
npm ci
|
||||||
COPY . .
|
COPY . .
|
||||||
COPY --from=wasm-builder /wasm/src/wasm/ src/wasm/
|
COPY --from=wasm-builder /wasm/src/wasm/ src/wasm/
|
||||||
CMD ["sh", "-c", "npx vite build --outDir /output --emptyOutDir"]
|
CMD ["sh", "-c", "npx vite build --outDir /output --emptyOutDir"]
|
||||||
|
|||||||
@@ -31,9 +31,8 @@ import Project from "./Project.vue";
|
|||||||
frontends to the self-hosted infrastructure they run on.
|
frontends to the self-hosted infrastructure they run on.
|
||||||
<a href="/pdf/dissertation.pdf">Dissertation</a> proved
|
<a href="/pdf/dissertation.pdf">Dissertation</a> proved
|
||||||
<a href="/automata">Mobile Automata</a> are computationally
|
<a href="/automata">Mobile Automata</a> are computationally
|
||||||
equivalent to Turing
|
equivalent to Turing Machines. Integrates AI tooling (Claude
|
||||||
Machines. Integrates AI tooling (Claude Code) into everyday
|
Code) into everyday development.
|
||||||
development.
|
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -109,6 +108,7 @@ import Project from "./Project.vue";
|
|||||||
Introduction to Rings and Fields with
|
Introduction to Rings and Fields with
|
||||||
Applications
|
Applications
|
||||||
</li>
|
</li>
|
||||||
|
<li>Real Analysis</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -200,9 +200,9 @@ import Project from "./Project.vue";
|
|||||||
</template>
|
</template>
|
||||||
<p contenteditable="true">
|
<p contenteditable="true">
|
||||||
Research project on
|
Research project on
|
||||||
<a href="/automata">Mobile Automata</a>: data visualisation
|
<a href="/automata">Mobile Automata</a>: data
|
||||||
in Mathematica, presented to the Wolfram community.
|
visualisation in Mathematica, presented to the Wolfram
|
||||||
Groundwork for the dissertation above.
|
community. Groundwork for the dissertation above.
|
||||||
</p>
|
</p>
|
||||||
</Project>
|
</Project>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user