Commit 13cbec0d authored by 簡碩辰's avatar 簡碩辰

Update Dockerfile

parent 33b23458
FROM resin/rpi-raspbian
# 更新系統套件清單
RUN apt update
# 安裝編譯用套件
RUN apt install -y wget build-essential
# 下載 socat 套件
RUN wget http://www.dest-unreach.org/socat/download/socat-1.7.3.2.tar.gz
# 解壓 socat 套件
RUN tar zxf socat-1.7.3.2.tar.gz
WORKDIR socat-1.7.3.2
RUN ./configure
# 設定編譯參數
RUN /socat-1.7.3.2/configure
# 編譯 socat
RUN make
# 安裝 socat
RUN make install
ENV TZ=Asia/Taipei
# 執行 socat
CMD socat tcp-listen:${LOCAL_PORT},reuseaddr,fork tcp:${REMOTE_IP}:${REMOTE_PORT}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment