Skip to content

Commit 6260dba

Browse files
committed
Add dockerfile to run on railway
1 parent 24ccd1d commit 6260dba

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM rust:1.71 AS builder
2+
WORKDIR /app
3+
COPY . .
4+
5+
RUN cargo build --release
6+
7+
FROM ubuntu:latest
8+
RUN apt-get update && apt-get install -y libssl-dev pkg-config
9+
RUN apt-get install -y ca-certificates
10+
11+
WORKDIR /app
12+
COPY --from=builder /app/target/release/server-bin /usr/local/bin/server
13+
ENTRYPOINT ["/usr/local/bin/server"]
14+

0 commit comments

Comments
 (0)