diff options
| author | Jesse Morgan <jesse@jesterpm.net> | 2022-04-06 06:59:24 -0700 | 
|---|---|---|
| committer | Jesse Morgan <jesse@jesterpm.net> | 2022-04-06 06:59:24 -0700 | 
| commit | 1424a4f1db5316076db44b983bf7fef74c815ce9 (patch) | |
| tree | 61739e12f006805b8e8372f48a88386fbbee09fa /Dockerfile | |
| parent | 2266172ff06edd7dadb3d341c5460beb042d1407 (diff) | |
Update Dockerfile to newer rust
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 6 | 
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@  # Based on https://alexbrand.dev/post/how-to-package-rust-applications-into-minimal-docker-containers/ -FROM rust:1.54.0 AS build +FROM rust:1.57.0 AS build  MAINTAINER Jesse Morgan <jesse@jesterpm.net> @@ -10,14 +10,14 @@ WORKDIR /usr/src  RUN USER=root cargo new s3-media-endpoint-rs  WORKDIR /usr/src/s3-media-endpoint-rs  COPY Cargo.toml Cargo.lock ./ -#RUN cargo install --path . +RUN cargo build --release  # Copy the source and build the application.  COPY src ./src  RUN cargo install --path .  # Now build the deployment image. -FROM debian:buster-slim +FROM debian:stable-slim  # RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*  RUN apt-get update && apt-get install -y libssl1.1 ca-certificates  COPY --from=build /usr/local/cargo/bin/s3-media-endpoint-rs . | 
