Skip to content

Instantly share code, notes, and snippets.

@gsquire
Last active July 22, 2024 12:16
Show Gist options
  • 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