mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-10-26 01:01:35 +00:00
Refactor(frontend): Refactor frontend using Lit
Refactor(database): use gorm+sqlite instead of bbolt Feat: Add delete short link functionality Fix: Load correct configuration template during meta config conversion
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
FROM node:lts-alpine as frontend_builder
|
||||
WORKDIR /app/server/frontend
|
||||
COPY server/frontend/package*.json ./
|
||||
RUN npm install
|
||||
COPY server/frontend .
|
||||
ARG version
|
||||
RUN APP_VERSION=${version} npm run build
|
||||
|
||||
FROM golang:1.25 as builder
|
||||
LABEL authors="nite07"
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
COPY --from=frontend_builder /app/server/frontend/dist /app/server/frontend/dist
|
||||
RUN go mod download
|
||||
ARG version
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X github.com/bestnite/sub2clash/constant.Version=${version}" -o sub2clash .
|
||||
@@ -9,4 +18,4 @@ RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X github.com/bestnite/sub
|
||||
FROM alpine:latest
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/sub2clash /app/sub2clash
|
||||
ENTRYPOINT ["/app/sub2clash"]
|
||||
ENTRYPOINT ["/app/sub2clash"]
|
||||
|
||||
Reference in New Issue
Block a user