mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 07:00:43 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a52fd04645 | ||
|
|
4e90897c60 | ||
|
|
0d79143167 | ||
|
|
a26d60d164 | ||
|
|
439b0ae545 | ||
|
|
e5267e2436 | ||
|
|
6d1e301b9d | ||
|
|
0e59054937 | ||
|
|
3c91ba50e9 | ||
|
|
f239dfb6df | ||
|
|
4d17c94aa8 | ||
|
|
27fa718ff5 | ||
|
|
4c03832b5a | ||
|
|
d240b37124 | ||
|
|
f28290f529 | ||
|
|
fdbc6f386f | ||
|
|
cb9b3ee8f1 | ||
|
|
77acbf0bf5 | ||
|
|
f962da2807 | ||
|
|
768b3ca49d |
@@ -1,7 +1,6 @@
|
|||||||
name: Docker Build Test
|
name: Docker Build Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
+4
-4
@@ -6,7 +6,7 @@ RUN git clone --depth 1 https://github.com/ReaJason/MemShellParty.git . && \
|
|||||||
rm -rf vul integration-test tools
|
rm -rf vul integration-test tools
|
||||||
|
|
||||||
# https://hub.docker.com/r/oven/bun
|
# https://hub.docker.com/r/oven/bun
|
||||||
FROM --platform=$BUILDPLATFORM oven/bun:1.4.0 AS frontend
|
FROM --platform=$BUILDPLATFORM oven/bun:1.3.14 AS frontend
|
||||||
|
|
||||||
ARG ROUTE_ROOT_PATH=""
|
ARG ROUTE_ROOT_PATH=""
|
||||||
ARG CONTEXT_PATH=""
|
ARG CONTEXT_PATH=""
|
||||||
@@ -16,7 +16,7 @@ WORKDIR /usr/src/web
|
|||||||
ENV VITE_APP_API_URL=${CONTEXT_PATH} \
|
ENV VITE_APP_API_URL=${CONTEXT_PATH} \
|
||||||
VITE_APP_BASE_PATH=${ROUTE_ROOT_PATH}/ui
|
VITE_APP_BASE_PATH=${ROUTE_ROOT_PATH}/ui
|
||||||
|
|
||||||
COPY --from=source /usr/src/web/package.json /usr/src/web/bun.lock /usr/src/web/
|
COPY --from=source /usr/src/web/package.json /usr/src/web/bun.lock /usr/src/web/source.config.ts /usr/src/web/
|
||||||
COPY --from=source /usr/src/web/vendor/cfr /usr/src/web/vendor/cfr
|
COPY --from=source /usr/src/web/vendor/cfr /usr/src/web/vendor/cfr
|
||||||
|
|
||||||
RUN bun install --frozen-lockfile
|
RUN bun install --frozen-lockfile
|
||||||
@@ -26,7 +26,7 @@ COPY --from=source /usr/src/web /usr/src/web
|
|||||||
RUN bun run build
|
RUN bun run build
|
||||||
|
|
||||||
# https://hub.docker.com/_/eclipse-temurin/tags?name=21.
|
# https://hub.docker.com/_/eclipse-temurin/tags?name=21.
|
||||||
FROM --platform=$BUILDPLATFORM eclipse-temurin:21.0.12_8-jdk-noble AS backend
|
FROM --platform=$BUILDPLATFORM eclipse-temurin:21.0.11_10-jdk-noble AS backend
|
||||||
|
|
||||||
WORKDIR /usr/src
|
WORKDIR /usr/src
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ COPY --from=frontend /usr/src/boot/src/main/resources /usr/src/boot/src/main/res
|
|||||||
|
|
||||||
RUN ./gradlew :boot:bootjar -x test
|
RUN ./gradlew :boot:bootjar -x test
|
||||||
|
|
||||||
FROM eclipse-temurin:21.0.12_8-jre-noble
|
FROM eclipse-temurin:21.0.11_10-jre-noble
|
||||||
|
|
||||||
LABEL authors="ReaJason<[email protected]>"
|
LABEL authors="ReaJason<[email protected]>"
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ idea {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
version = "2.10.0"
|
version = "2.10.0-SNAPSHOT"
|
||||||
|
|
||||||
tasks.register("publishAllToMavenCentral") {
|
tasks.register("publishAllToMavenCentral") {
|
||||||
dependsOn(":memshell-party-common:publishToMavenCentral")
|
dependsOn(":memshell-party-common:publishToMavenCentral")
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { ExternalLinkIcon } from "lucide-react";
|
||||||
import type { LinkItemType } from "fumadocs-ui/layouts/shared";
|
import type { LinkItemType } from "fumadocs-ui/layouts/shared";
|
||||||
|
|
||||||
import { ExternalLinkIcon } from "lucide-react";
|
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
import { LanguageSwitcher } from "@/components/language-switcher";
|
import { LanguageSwitcher } from "@/components/language-switcher";
|
||||||
|
|||||||
@@ -10,9 +10,6 @@ export default defineConfig(({ command, mode }) => {
|
|||||||
const contextPath = env.VITE_APP_API_URL?.trim() ?? "";
|
const contextPath = env.VITE_APP_API_URL?.trim() ?? "";
|
||||||
|
|
||||||
return {
|
return {
|
||||||
// React Router 8 prerendering requests the Vite preview server over HTTP.
|
|
||||||
// Bind it explicitly to IPv4 so `localhost` resolves to the address being listened on in Docker.
|
|
||||||
preview: { host: "127.0.0.1" },
|
|
||||||
base: isDev || !contextPath ? "/" : `${contextPath}/`,
|
base: isDev || !contextPath ? "/" : `${contextPath}/`,
|
||||||
plugins: [fumadocsMdx(), tailwindcss(), reactRouter(), devtoolsJson()],
|
plugins: [fumadocsMdx(), tailwindcss(), reactRouter(), devtoolsJson()],
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|||||||
Reference in New Issue
Block a user