fix docker warning about FROM and AS being in different letter case

This commit is contained in:
Vasyl Tretiakov 2025-01-24 20:54:49 +02:00
parent 2ac466017a
commit b0b4d90e3c
3 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
FROM golang:1.20.14-alpine3.19 as build
FROM golang:1.20.14-alpine3.19 AS build
ARG NODE_VERSION
ARG MAX_KEY_ID

View File

@ -1,4 +1,4 @@
FROM ubuntu:24.04 as build-base
FROM ubuntu:24.04 AS build-base
ENV PATH="${PATH}:/root/.cargo/bin/"
@ -59,7 +59,7 @@ RUN /opt/rustup-init.sh -y --profile minimal
# Install uniffi-bindgen-go
RUN cargo install uniffi-bindgen-go --git https://github.com/NordSecurity/uniffi-bindgen-go --tag v0.2.1+v0.25.0
FROM build-base as build
FROM build-base AS build
ENV GOEXPERIMENT=arenas
ENV QUILIBRIUM_SIGNATURE_CHECK=false
@ -88,7 +88,7 @@ WORKDIR /opt/ceremonyclient/client
RUN ./build.sh -o qclient && cp qclient /usr/bin
# Allows exporting single binary
FROM scratch as qclient
FROM scratch AS qclient
COPY --from=build /usr/bin/qclient /qclient
ENTRYPOINT [ "/qclient" ]

View File

@ -1,4 +1,4 @@
FROM ubuntu:24.04 as build-base
FROM ubuntu:24.04 AS build-base
ENV PATH="${PATH}:/root/.cargo/bin/"
@ -61,7 +61,7 @@ RUN /opt/rustup-init.sh -y --profile minimal
# Install uniffi-bindgen-go
RUN cargo install uniffi-bindgen-go --git https://github.com/NordSecurity/uniffi-bindgen-go --tag v0.2.1+v0.25.0
FROM build-base as build
FROM build-base AS build
ENV GOEXPERIMENT=arenas
ENV QUILIBRIUM_SIGNATURE_CHECK=false
@ -90,7 +90,7 @@ WORKDIR /opt/ceremonyclient/client
RUN ./build.sh -o qclient && cp qclient /usr/bin
# Allows exporting single binary
FROM scratch as qclient
FROM scratch AS qclient
COPY --from=build /usr/bin/qclient /qclient
ENTRYPOINT [ "/qclient" ]