mirror of
https://github.com/woodchen-ink/proxy-go.git
synced 2025-07-18 08:31:55 +08:00
- 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
16 lines
279 B
Docker
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"]
|