Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
railgun-routing-server
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
railgun-routing-server
Commits
5f5bfc43
You need to sign in or sign up before continuing.
Commit
5f5bfc43
authored
Dec 16, 2025
by
nanamicat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dockerfile
parent
49e102cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
Dockerfile
Dockerfile
+16
-13
No files found.
Dockerfile
View file @
5f5bfc43
FROM
node:16-alpine AS web
FROM
rust:alpine AS chef
WORKDIR
/app
RUN
cargo
install
cargo-chef
COPY
web/package*.json ./
WORKDIR
app
RUN
npm ci
COPY
web .
RUN
npm run build
FROM
node:16-alpine
FROM
chef AS planner
WORKDIR
/app
COPY
. .
COPY
server/package*.json ./
RUN
cargo chef prepare
--recipe-path
recipe.json
RUN
npm ci
COPY
server .
COPY
--from=web /app/dist/railgun-dashboard public
CMD
[ "./node_modules/.bin/ts-node", "src/main.ts"]
FROM
chef AS builder
COPY
--from=planner /app/recipe.json recipe.json
RUN
cargo chef cook
--release
--recipe-path
recipe.json
COPY
. .
RUN
cargo build
--release
FROM
alpine
WORKDIR
app
COPY
--from=builder /app/target/release/railgun-routing-server /usr/local/bin
ENTRYPOINT
["/usr/local/bin/railgun-routing-server"]
\ 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