"as" should be all uppercased

This commit is contained in:
NI
2019-08-25 08:19:16 +08:00
parent 9e5d46b78f
commit 19f53e1457

View File

@@ -1,5 +1,5 @@
# Build the build base environment # Build the build base environment
FROM debian:sid as base FROM debian:sid AS base
COPY . /tmp/.build/sshwifty COPY . /tmp/.build/sshwifty
RUN set -ex && \ RUN set -ex && \
cd / && \ cd / && \
@@ -13,7 +13,7 @@ RUN set -ex && \
try.sh install.sh && rm /install.sh try.sh install.sh && rm /install.sh
# Build the base environment for application libraries # Build the base environment for application libraries
FROM base as libbase FROM base AS libbase
RUN set -ex && \ RUN set -ex && \
cd / && \ cd / && \
export PATH=$PATH:/ && \ export PATH=$PATH:/ && \
@@ -24,7 +24,7 @@ RUN set -ex && \
'cd /tmp/.build/sshwifty && try.sh go mod download' 'cd /tmp/.build/sshwifty && try.sh go mod download'
# Main building environment # Main building environment
FROM libbase as builder FROM libbase AS builder
RUN set -ex && \ RUN set -ex && \
cd / && \ cd / && \
export PATH=$PATH:/ && \ export PATH=$PATH:/ && \