1
0
mirror of https://github.com/pooneyy/1Panel-Appstore.git synced 2026-03-18 02:11:04 +08:00
pooneyy db96787676
♻️ refactor(port-forward): restructure application organization and optimize docker setup
- consolidate port-forward-agent and port-forward-server into single port-forward directory
- remove old dockerfiles and implement multi-stage docker build for both agent and server
- update docker-compose files to use pre-built images from ghcr.io instead of local builds
- normalize configuration file formatting and line endings
- update data.yml descriptions to remove redundant client/server specifications
- maintain all existing functionality while improving project structure
2025-10-03 01:32:42 +08:00

26 lines
891 B
Docker

FROM debian:bullseye-slim AS base
ENV TZ=Asia/Shanghai
RUN mkdir -p /app/pfg && \
apt-get update && apt-get upgrade -y && \
apt-get install -y wget unzip tzdata && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app/pfg
FROM base AS agent
RUN wget -O pfg.zip https://gitee.com/tavenli/port-forward/releases/download/v1.3.7/forward-agent.linux64.v1.3.7.zip && \
unzip pfg.zip && \
rm -rf pfg.zip && \
chmod +x /app/pfg/forward-agent/forward-agent
WORKDIR /app/pfg/forward-agent
CMD ["./forward-agent"]
FROM base AS server
RUN wget -O pfg.zip https://gitee.com/tavenli/port-forward/releases/download/v1.3.7/forward-server.linux64.v1.3.7.zip && \
unzip pfg.zip && \
rm -rf pfg.zip && \
chmod +x /app/pfg/forward-server/start.sh && \
chmod +x /app/pfg/forward-server/forward-server
WORKDIR /app/pfg/forward-server
CMD ["./forward-server"]