proxy-go/Dockerfile
wood chen fa5cbff486 feat(web): Update file paths for static and template serving in Docker environment
- Modify Dockerfile to copy web directory into /app
- Update main.go to serve static and template files from absolute paths (/app/web)
- Add debug logging for static file and template route handling
- Ensure consistent file serving across admin and web routes
2025-02-15 09:29:55 +08:00

16 lines
279 B
Docker

FROM alpine:latest
ARG TARGETARCH
WORKDIR /app
COPY proxy-go.${TARGETARCH} /app/proxy-go
COPY web /app/web
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"]