Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RaspberryNode
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
簡碩辰
RaspberryNode
Commits
13cbec0d
Commit
13cbec0d
authored
Sep 26, 2019
by
簡碩辰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Dockerfile
parent
33b23458
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
Dockerfile
dvr/socat/Dockerfile
+9
-13
No files found.
dvr/socat/Dockerfile
View file @
13cbec0d
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment