Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): Fix Dockerfile casing warnings #5031

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading