Skip to content

Commit 7058cd2

Browse files
committed
chore: fix style of Dockerfile
1 parent 0b8eccd commit 7058cd2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
FROM rust:1.80 as base
1+
FROM rust:1.80 AS base
22

33
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
44

55
RUN cargo install cargo-chef
66

7-
FROM base as planner
7+
FROM base AS planner
88

99
WORKDIR /app
1010
COPY . .
1111
RUN cargo chef prepare --recipe-path recipe.json
1212

13-
FROM base as build
13+
FROM base AS build
1414

1515
WORKDIR /app
1616
COPY --from=planner /app/recipe.json recipe.json
@@ -25,7 +25,7 @@ COPY src src
2525

2626
RUN cargo build --release
2727

28-
FROM ubuntu:22.04 as runtime
28+
FROM ubuntu:22.04 AS runtime
2929

3030
WORKDIR /
3131

0 commit comments

Comments
 (0)