Skip to content

Commit

Permalink
wip: separate frontend resources
Browse files Browse the repository at this point in the history
  • Loading branch information
ElaBosak233 committed Nov 14, 2024
1 parent f9bb2dc commit 2406e7a
Show file tree
Hide file tree
Showing 158 changed files with 100 additions and 15,729 deletions.
14 changes: 2 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:latest AS backend
FROM rust:latest AS builder

WORKDIR /app

Expand All @@ -16,21 +16,11 @@ RUN cargo build --release --target x86_64-unknown-linux-musl

RUN strip target/x86_64-unknown-linux-musl/release/cdsctf

FROM node:20 AS frontend

COPY ./web /app

WORKDIR /app

RUN npm install
RUN npm run build

FROM alpine:latest

WORKDIR /app

COPY --from=backend /app/target/x86_64-unknown-linux-musl/release/cdsctf .
COPY --from=frontend /app/dist ./dist
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/cdsctf .

EXPOSE 8888

Expand Down
6 changes: 0 additions & 6 deletions docs/.gitignore

This file was deleted.

17 changes: 0 additions & 17 deletions docs/.vitepress/config/en.mts

This file was deleted.

32 changes: 0 additions & 32 deletions docs/.vitepress/config/index.mts

This file was deleted.

44 changes: 0 additions & 44 deletions docs/.vitepress/config/zh.mts

This file was deleted.

6 changes: 0 additions & 6 deletions docs/.vitepress/theme/index.ts

This file was deleted.

151 changes: 0 additions & 151 deletions docs/.vitepress/theme/style.css

This file was deleted.

Empty file removed docs/en/contribution/index.md
Empty file.
31 changes: 0 additions & 31 deletions docs/en/guide/index.md

This file was deleted.

34 changes: 0 additions & 34 deletions docs/en/index.md

This file was deleted.

10 changes: 0 additions & 10 deletions docs/package.json

This file was deleted.

Binary file removed docs/public/favicon.webp
Binary file not shown.
Loading

0 comments on commit 2406e7a

Please sign in to comment.