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
|
# 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
|
COPY src/frontend /frontend
|
||||||
|
|
||||||
RUN cd /frontend && npm install && npm run build
|
RUN cd /frontend && npm install && npm run build
|
||||||
|
|
@ -14,7 +14,7 @@ RUN cd /frontend && npm install && npm run build
|
||||||
################################
|
################################
|
||||||
# RUNTIME
|
# 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.title=langflow-frontend
|
||||||
LABEL org.opencontainers.image.authors=['Langflow']
|
LABEL org.opencontainers.image.authors=['Langflow']
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue