Skip to content

Commit 4fdc615

Browse files
committed
Add dockerfile to run on railway
1 parent 24ccd1d commit 4fdc615

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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 wget
9+
RUN wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
10+
RUN dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
11+
RUN apt-get install -y ca-certificates
12+
13+
WORKDIR /app
14+
COPY --from=builder /app/target/release/server-bin /usr/local/bin/server
15+
ENTRYPOINT ["/usr/local/bin/server"]
16+

0 commit comments

Comments
 (0)