From 267c08bc074d55eba9b55cc6594f9c46f689850d Mon Sep 17 00:00:00 2001 From: gitworkflows <118260833+gitworkflows@users.noreply.github.com> Date: Mon, 9 Dec 2024 18:47:59 +0600 Subject: [PATCH] fix(Dockerfile): standardize casing for 'FROM' and 'AS' keywords (#5159) - Updated the Dockerfile to use consistent uppercase casing for 'FROM' and 'AS'. - Resolved 'FromAsCasing' warnings that were flagged during the Docker build. - Improves readability and adheres to Dockerfile best practices. This change ensures a cleaner build process with no warnings. --- docker/frontend/build_and_push_frontend.Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/frontend/build_and_push_frontend.Dockerfile b/docker/frontend/build_and_push_frontend.Dockerfile index 55f570187..8bba52c3b 100644 --- a/docker/frontend/build_and_push_frontend.Dockerfile +++ b/docker/frontend/build_and_push_frontend.Dockerfile @@ -6,7 +6,7 @@ ################################ # 1. force platform to the current architecture to increase build speed time on multi-platform builds -FROM --platform=$BUILDPLATFORM node:lts-bookworm-slim as builder-base +FROM --platform=$BUILDPLATFORM node:lts-bookworm-slim AS builder-base COPY src/frontend /frontend RUN cd /frontend && npm install && npm run build @@ -14,7 +14,7 @@ RUN cd /frontend && npm install && npm run build ################################ # RUNTIME ################################ -FROM nginxinc/nginx-unprivileged:stable-bookworm-perl as runtime +FROM nginxinc/nginx-unprivileged:stable-bookworm-perl AS runtime LABEL org.opencontainers.image.title=langflow-frontend LABEL org.opencontainers.image.authors=['Langflow'] @@ -26,4 +26,4 @@ COPY --from=builder-base --chown=nginx /frontend/build /usr/share/nginx/html COPY --chown=nginx ./docker/frontend/nginx.conf /etc/nginx/conf.d/default.conf COPY --chown=nginx ./docker/frontend/start-nginx.sh /start-nginx.sh RUN chmod +x /start-nginx.sh -ENTRYPOINT ["/start-nginx.sh"] \ No newline at end of file +ENTRYPOINT ["/start-nginx.sh"]