Skip to content

Commit 1c5135e

Browse files
committed
revert: 移除Dockerfile、program.ts、config-download.vue的个人化改动
1 parent 176b7af commit 1c5135e

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

Dockerfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM ghcr.io/astral-sh/uv:0.5-python3.13-alpine AS builder
1+
# syntax=docker/dockerfile:1
2+
3+
FROM ghcr.io/astral-sh/uv:0.5-python3.13-alpine AS builder
24

35
WORKDIR /app
46
ENV UV_COMPILE_BYTECODE=1
@@ -12,7 +14,7 @@ RUN uv sync --frozen --no-dev
1214
COPY backend/src ./src
1315

1416

15-
FROM ghcr.io/astral-sh/uv:0.5-python3.13-alpine AS runtime
17+
FROM python:3.13-alpine AS runtime
1618

1719
RUN apk add --no-cache \
1820
bash \
@@ -32,10 +34,6 @@ WORKDIR /app
3234
# Copy venv and source from builder
3335
COPY --from=builder /app/.venv /app/.venv
3436
COPY --from=builder /app/src .
35-
36-
# Copy pre-built frontend from host
37-
COPY webui/dist ./dist
38-
3937
COPY --chmod=755 entrypoint.sh /entrypoint.sh
4038

4139
# Add user
@@ -45,7 +43,7 @@ RUN mkdir -p /home/ab && \
4543

4644
ENV PATH="/app/.venv/bin:$PATH"
4745

48-
EXPOSE 37892
46+
EXPOSE 7892
4947
VOLUME ["/app/config", "/app/data"]
5048

5149
ENTRYPOINT ["tini", "-g", "--", "/entrypoint.sh"]

webui/src/api/program.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const apiProgram = {
2929
* 状态
3030
*/
3131
async status() {
32-
const { data } = await axios.get<{ status: boolean; version: string; platform: string; first_run: boolean }>(
32+
const { data } = await axios.get<{ status: boolean; version: string }>(
3333
'api/v1/status'
3434
);
3535

webui/src/components/setting/config-download.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script lang="ts" setup>
1+
<script lang="ts" setup>
22
import type { Downloader, DownloaderType } from '#/config';
33
import type { SettingItem } from '#/components';
44

0 commit comments

Comments
 (0)