From 5a0c23f9003be4d54ac0df17600feebbeff51742 Mon Sep 17 00:00:00 2001 From: Marc Bernard <59966492+mbtools@users.noreply.github.com> Date: Wed, 17 Jul 2024 13:57:35 -0400 Subject: [PATCH] fix: Dockerfile error FromAsCasing (#4713) --- Dockerfile | 2 +- docker-examples/v5/plugins/docker-local-plugin/Dockerfile | 2 +- .../v6/plugins/docker-build-install-plugin/Dockerfile | 2 +- docker-examples/v6/plugins/docker-local-plugin/Dockerfile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4909bb875..3950b62cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=${BUILDPLATFORM:-linux/amd64} node:21-alpine as builder +FROM --platform=${BUILDPLATFORM:-linux/amd64} node:21-alpine AS builder ENV NODE_ENV=development \ VERDACCIO_BUILD_REGISTRY=https://registry.npmjs.org diff --git a/docker-examples/v5/plugins/docker-local-plugin/Dockerfile b/docker-examples/v5/plugins/docker-local-plugin/Dockerfile index 1c9d67723..d224ef7b7 100644 --- a/docker-examples/v5/plugins/docker-local-plugin/Dockerfile +++ b/docker-examples/v5/plugins/docker-local-plugin/Dockerfile @@ -1,7 +1,7 @@ # Docs based on https://github.com/xlts-dev/verdaccio-prometheus-middleware#installation # Docker multi-stage build - https://docs.docker.com/develop/develop-images/multistage-build/ # Use an alpine node image to install the plugin -FROM node:lts-alpine as builder +FROM node:lts-alpine AS builder RUN mkdir -p /verdaccio/plugins diff --git a/docker-examples/v6/plugins/docker-build-install-plugin/Dockerfile b/docker-examples/v6/plugins/docker-build-install-plugin/Dockerfile index 691a2f4a9..87396379d 100644 --- a/docker-examples/v6/plugins/docker-build-install-plugin/Dockerfile +++ b/docker-examples/v6/plugins/docker-build-install-plugin/Dockerfile @@ -2,7 +2,7 @@ # Docker multi-stage build - https://docs.docker.com/develop/develop-images/multistage-build/ # Use an alpine node image to install the plugin -FROM node:lts-alpine as builder +FROM node:lts-alpine AS builder # Install the metrics middleware plugin # npm docs diff --git a/docker-examples/v6/plugins/docker-local-plugin/Dockerfile b/docker-examples/v6/plugins/docker-local-plugin/Dockerfile index db4dc45df..141341a3e 100644 --- a/docker-examples/v6/plugins/docker-local-plugin/Dockerfile +++ b/docker-examples/v6/plugins/docker-local-plugin/Dockerfile @@ -1,7 +1,7 @@ # Docs based on https://github.com/xlts-dev/verdaccio-prometheus-middleware#installation # Docker multi-stage build - https://docs.docker.com/develop/develop-images/multistage-build/ # Use an alpine node image to install the plugin -FROM node:lts-alpine as builder +FROM node:lts-alpine AS builder RUN mkdir -p /verdaccio/plugins