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.
This commit is contained in:
gitworkflows 2024-12-09 18:47:59 +06:00 committed by GitHub
commit 267c08bc07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"]
ENTRYPOINT ["/start-nginx.sh"]