This is an automated email from the ASF dual-hosted git repository.
ccondit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-web.git
The following commit(s) were added to refs/heads/master by this push:
new 602ca5e [YUNIKORN-2799] Fix Dockerfile warnings (#201)
602ca5e is described below
commit 602ca5ee65081d27b54a3f0b004194b0598f7567
Author: ryankert <[email protected]>
AuthorDate: Fri Sep 6 09:54:41 2024 -0500
[YUNIKORN-2799] Fix Dockerfile warnings (#201)
Closes: #201
Signed-off-by: Craig Condit <[email protected]>
---
Dockerfile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index 8e18c99..86d32f4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,9 +15,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-ARG NODE_VERSION
+ARG NODE_VERSION=20
# Buildstage: use the local architecture
-FROM --platform=$BUILDPLATFORM node:${NODE_VERSION}-alpine as buildstage
+FROM --platform=$BUILDPLATFORM node:${NODE_VERSION}-alpine AS buildstage
WORKDIR /work
# Only copy what is needed for the build
@@ -29,10 +29,10 @@ RUN PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 pnpm i
RUN pnpm build:prod
# Imagestage: use scratch base image
-FROM --platform=$TARGETPLATFORM scratch
+FROM scratch
COPY --chown=0:0 NOTICE LICENSE build/prod/yunikorn-web /
COPY --chown=0:0 --from=buildstage /work/dist/yunikorn-web /html/
EXPOSE 9889
-ENV DOCUMENT_ROOT /html
+ENV DOCUMENT_ROOT=/html
USER 4444:4444
ENTRYPOINT [ "/yunikorn-web" ]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]