Created
April 7, 2024 18:08
-
-
Save STashakkori/673c3f8806704fb0eacac81bb406be80 to your computer and use it in GitHub Desktop.
note
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:buster-slim | |
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* | |
WORKDIR /usr/src/app | |
COPY ./target/release/rust_app . | |
RUN chmod +x rust_app | |
CMD ["./rust_app"] | |
# In shell: | |
# docker build -t rust-app-image . | |
# docker run --name rust-app-container -d rust-app-image |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment