mirror of https://github.com/knative/docs.git
14 lines
308 B
Docker
14 lines
308 B
Docker
# Use the official Rust image.
|
|
# https://hub.docker.com/_/rust
|
|
FROM rust:1.51.0
|
|
|
|
# Copy local code to the container image.
|
|
WORKDIR /usr/src/app
|
|
COPY . .
|
|
|
|
# Install production dependencies and build a release artifact.
|
|
RUN cargo install --path .
|
|
|
|
# Run the web service on container startup.
|
|
CMD ["hellorust"]
|