Skip to content

Commit

Permalink
fix lower case warnings on Dockerfile (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomich authored Oct 19, 2024
1 parent d8fc23d commit 3aec637
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM rust:alpine as dependencies
FROM rust:alpine AS dependencies

RUN apk add --no-cache alpine-sdk cmake automake autoconf opus libtool
RUN cargo install cargo-chef

FROM dependencies as planner
FROM dependencies AS planner
WORKDIR app

# We only pay the installation cost once,
Expand All @@ -13,20 +13,20 @@ WORKDIR app
COPY . .
RUN cargo chef prepare --recipe-path recipe.json

FROM dependencies as cacher
FROM dependencies AS cacher
WORKDIR app
COPY --from=planner /app/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json

FROM dependencies as builder
FROM dependencies AS builder
WORKDIR app
COPY . .
# Copy over the cached dependencies
COPY --from=cacher /app/target target
COPY --from=cacher /usr/local/cargo /usr/local/cargo
RUN cargo build --release --bin aoede

FROM alpine as runtime
FROM alpine AS runtime
WORKDIR app
COPY --from=builder /app/target/release/aoede /usr/local/bin

Expand Down

0 comments on commit 3aec637

Please sign in to comment.