mirror of
https://github.com/woodchen-ink/proxy-go.git
synced 2025-07-18 00:21:56 +08:00
- Remove legacy static files, templates, and JavaScript - Update main.go to serve SPA-style web application - Modify admin route handling to support client-side routing - Simplify configuration and metrics API endpoints - Remove server-side template rendering in favor of static file serving - Update Dockerfile and GitHub Actions to build web frontend
17 lines
302 B
Docker
17 lines
302 B
Docker
# 构建后端
|
|
FROM alpine:latest
|
|
|
|
ARG TARGETARCH
|
|
WORKDIR /app
|
|
|
|
COPY proxy-go.${TARGETARCH} /app/proxy-go
|
|
COPY web/out /app/web/out
|
|
|
|
RUN mkdir -p /app/data && \
|
|
chmod +x /app/proxy-go && \
|
|
apk add --no-cache ca-certificates tzdata
|
|
|
|
EXPOSE 3336
|
|
VOLUME ["/app/data"]
|
|
ENTRYPOINT ["/app/proxy-go"]
|