16 lines
400 B
Docker
16 lines
400 B
Docker
FROM rust:1.40-alpine as builder
|
|
|
|
VOLUME /usr/local/cargo/bin/
|
|
WORKDIR /usr/src/myapp
|
|
COPY . .
|
|
RUN cargo install --root /usr/local --path .
|
|
|
|
#FROM debian:buster-slim
|
|
#
|
|
#RUN apt-get update && apt-get install -y extra-runtime-dependencies
|
|
#COPY --from=builder /usr/local/cargo/bin/myapp /usr/local/bin/myapp
|
|
#CMD ["hello"]
|
|
|
|
#CMD ["/usr/local/cargo/bin/hello"]
|
|
CMD sh -c "while true; do sleep 10; done"
|