Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tun
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
tun
Commits
d70d4b10
Commit
d70d4b10
authored
Feb 02, 2025
by
nanamicat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker
parent
474d54a0
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
136 additions
and
100 deletions
+136
-100
Dockerfile
Dockerfile
+12
-0
src/main.rs
src/main.rs
+124
-100
No files found.
Dockerfile
0 → 100644
View file @
d70d4b10
FROM
rust:alpine as builder
WORKDIR
/usr/src/app
COPY
. .
RUN
cargo
install
--path
.
FROM
alpine
RUN
apk
--no-cache
add libgcc libstdc++ bash iproute2 iptables ipset netcat-openbsd
COPY
--from=builder /usr/local/cargo/bin/tun1 /usr/local/bin/tun
COPY
./entrypoint.sh /entrypoint.sh
ENTRYPOINT
["/entrypoint.sh"]
CMD
["tun"]
src/main.rs
View file @
d70d4b10
This diff is collapsed.
Click to expand it.
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