Skip to content

Instantly share code, notes, and snippets.

@blakejakopovic
Forked from gsquire/rust_docker
Created February 3, 2024 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blakejakopovic/f98eebabbad47520e0dc3a710f913abe to your computer and use it in GitHub Desktop.
Save blakejakopovic/f98eebabbad47520e0dc3a710f913abe to your computer and use it in GitHub Desktop.
A small docker image for rust using alpine linux
FROM alpine:3.6
RUN apk add --no-cache rust cargo
COPY project /build
WORKDIR /build
RUN ["cargo", "build", "--release"]
ENTRYPOINT ["cargo", "run", "--release"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment