We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24ccd1d commit 1c0e009Copy full SHA for 1c0e009
Dockerfile
@@ -0,0 +1,21 @@
1
+FROM rust:1.71 as builder
2
+ENV SERVER_ADDRESS=0.0.0.0
3
+ENV SERVER_PORT=3000
4
+WORKDIR /app
5
+COPY . .
6
+
7
+RUN cargo build --release --target=x86_64-unknown-linux-gnu
8
+RUN ls
9
10
+FROM ubuntu:latest
11
+RUN apt-get update && apt-get install -y libssl-dev pkg-config
12
+RUN apt-get install -y ca-certificates
13
14
15
+COPY --from=builder /app/target/release/server /usr/local/bin
16
17
18
+RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
19
+RUN source $HOME/.cargo/env
20
+ENTRYPOINT ["/usr/local/bin/server"]
21
0 commit comments