From 9bab7ea5117ff1f7acc52a7a99d3ab7d7590a22f Mon Sep 17 00:00:00 2001 From: Eric Zhang Date: Fri, 10 Jan 2025 13:36:08 -0500 Subject: [PATCH] Match casing of FROM and AS (#108) https://docs.docker.com/reference/build-checks/from-as-casing/ --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 54ce8ce..6d2e411 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:alpine as backend +FROM rust:alpine AS backend WORKDIR /home/rust/src RUN apk --no-cache add musl-dev openssl-dev protoc RUN rustup component add rustfmt @@ -8,7 +8,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \ cargo build --release --bin sshx-server && \ cp target/release/sshx-server /usr/local/bin -FROM node:lts-alpine as frontend +FROM node:lts-alpine AS frontend RUN apk --no-cache add git WORKDIR /usr/src/app COPY . .