Skip to content

Commit

Permalink
fix(ci): Fix Dockerfile casing warnings (#5031)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolodato authored Jan 22, 2025
1 parent 4702aaa commit 29b7a90
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ ARG CI_COMMIT_SHA=dev
ARG NODE_VERSION=16
ARG PYTHON_VERSION=3.11

FROM public.ecr.aws/docker/library/node:${NODE_VERSION}-bookworm as node
FROM cgr.dev/chainguard/wolfi-base:latest as wolfi-base
FROM public.ecr.aws/docker/library/node:${NODE_VERSION}-bookworm AS node
FROM cgr.dev/chainguard/wolfi-base:latest AS wolfi-base

# - Intermediary stages
# * build-node
Expand All @@ -73,17 +73,17 @@ RUN cd frontend && ENV=${ENV} npm ci --quiet --production
COPY frontend /build/frontend

# * build-node-django [build-node]
FROM build-node as build-node-django
FROM build-node AS build-node-django

RUN mkdir /build/api && cd frontend && npm run bundledjango

# * build-node-selfhosted [build-node]
FROM build-node as build-node-selfhosted
FROM build-node AS build-node-selfhosted

RUN cd frontend && npm run bundle

# * build-python
FROM wolfi-base as build-python
FROM wolfi-base AS build-python
WORKDIR /build

ARG PYTHON_VERSION
Expand Down Expand Up @@ -115,7 +115,7 @@ RUN --mount=type=secret,id=github_private_cloud_token \
make install-private-modules

# * api-runtime
FROM wolfi-base as api-runtime
FROM wolfi-base AS api-runtime

# Install Python and make it available to venv entrypoints
ARG PYTHON_VERSION
Expand All @@ -140,7 +140,7 @@ ENTRYPOINT ["/app/scripts/run-docker.sh"]
CMD ["migrate-and-serve"]

# * api-runtime-private [api-runtime]
FROM api-runtime as api-runtime-private
FROM api-runtime AS api-runtime-private

# Install SAML binary dependency
RUN apk add xmlsec
Expand All @@ -159,7 +159,7 @@ CMD ["make test"]

# - Target (shippable) stages
# * private-cloud-api [api-runtime-private, build-python-private]
FROM api-runtime-private as private-cloud-api
FROM api-runtime-private AS private-cloud-api

COPY --from=build-python-private /build/.venv/ /usr/local/

Expand All @@ -169,7 +169,7 @@ RUN touch ./ENTERPRISE_VERSION
USER nobody

# * private-cloud-unified [api-runtime-private, build-python-private, build-node-django]
FROM api-runtime-private as private-cloud-unified
FROM api-runtime-private AS private-cloud-unified

COPY --from=build-python-private /build/.venv/ /usr/local/
COPY --from=build-node-django /build/api/ /app/
Expand All @@ -180,7 +180,7 @@ RUN touch ./ENTERPRISE_VERSION
USER nobody

# * saas-api [api-runtime-private, build-python-private]
FROM api-runtime-private as saas-api
FROM api-runtime-private AS saas-api

# Install GnuPG and import private key
RUN --mount=type=secret,id=sse_pgp_pkey \
Expand All @@ -197,7 +197,7 @@ RUN touch ./SAAS_DEPLOYMENT
USER nobody

# * oss-api [api-runtime, build-python]
FROM api-runtime as oss-api
FROM api-runtime AS oss-api

COPY --from=build-python /build/.venv/ /usr/local/

Expand Down Expand Up @@ -228,7 +228,7 @@ CMD ["node", "./api/index.js"]
USER nobody

# * oss-unified [api-runtime, build-python, build-node-django]
FROM api-runtime as oss-unified
FROM api-runtime AS oss-unified

COPY --from=build-python /build/.venv/ /usr/local/
COPY --from=build-node-django /build/api/ /app/
Expand Down

0 comments on commit 29b7a90

Please sign in to comment.