Skip to content

Instantly share code, notes, and snippets.

@gsquire
Last active March 14, 2024 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save gsquire/04fd0fc101015b33c6206975d4d82e31 to your computer and use it in GitHub Desktop.
Save gsquire/04fd0fc101015b33c6206975d4d82e31 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