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:
parent
c9bedb21c9
commit
267c08bc07
1 changed files with 3 additions and 3 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue