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
5ecb79c3
Commit
5ecb79c3
authored
Dec 20, 2025
by
nanamicat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker
parent
1f73ae2b
Pipeline
#42039
failed with stages
in 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
13 deletions
+32
-13
.dockerignore
.dockerignore
+22
-0
Dockerfile
Dockerfile
+10
-13
No files found.
.dockerignore
0 → 100644
View file @
5ecb79c3
# Rust build artifacts
target/
# Git
.git/
.gitignore
# IDE
.idea/
# CI/CD
.gitlab-ci.yml
# Docker
Dockerfile
.dockerignore
# Documentation
README.md
rustfmt.toml
entrypoint.sh
\ No newline at end of file
Dockerfile
View file @
5ecb79c3
FROM
rust:1.91-alpine3.22 as chef
RUN
apk add
--no-cache
musl-dev
FROM
rust:1.92-alpine3.23 AS chef
RUN
cargo
install
cargo-chef
WORKDIR
/usr/src/
app
WORKDIR
app
FROM
chef as planner
COPY
Cargo.toml Cargo.lock ./
COPY
src src
RUN
cargo chef prepare
--recipe-path
recipe.json
FROM
chef AS planner
COPY
. .
RUN
cargo chef prepare
--recipe-path
recipe.json
FROM
chef
as
builder
COPY
--from=planner /
usr/src/
app/recipe.json recipe.json
FROM
chef
AS
builder
COPY
--from=planner /app/recipe.json recipe.json
RUN
cargo chef cook
--release
--recipe-path
recipe.json
COPY
Cargo.toml Cargo.lock ./
COPY
src src
COPY
. .
RUN
cargo build
--release
FROM
alpine:3.22
RUN
apk
--no-cache
add
libgcc libstdc++
bash iproute2 iptables iptables-legacy ipset netcat-openbsd jq
COPY
--from=builder /
usr/src/
app/target/release/tun1 /usr/local/bin/tun
RUN
apk
--no-cache
add bash iproute2 iptables iptables-legacy ipset netcat-openbsd jq
COPY
--from=builder /app/target/release/tun1 /usr/local/bin/tun
COPY
./entrypoint.sh /entrypoint.sh
ENTRYPOINT
["/entrypoint.sh"]
...
...
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