Docker ImagesManaged Images

Managed Images

💡

Reminder: SGTS GLCR images are prefixed with registry.sgts.gitlab-dedicated.com/innersource/sgts/runtime/airbase/images

Supported Versions

TagDocker Hub Image
node-22gdssingapore/airbase:node-22
node-22-buildergdssingapore/airbase:node-22-builder
node-20gdssingapore/airbase:node-20
node-20-buildergdssingapore/airbase:node-20-builder

Sample Usage

FROM gdssingapore/airbase:node-22-builder AS builder
ENV NEXT_TELEMETRY_DISABLED=1
ENV SKIP_ENV_VALIDATION=1
COPY package.json package-lock.json ./
COPY prisma ./prisma
RUN npm install
COPY . ./
RUN npm run build
 
FROM gdssingapore/airbase:node-22-builder AS prisma
COPY prisma ./prisma
RUN npx prisma generate
 
FROM gdssingapore/airbase:node-22
RUN mkdir .next && chown app:app .next
RUN mkdir .npm && chown app:app .npm
COPY --from=builder --chown=app:app /app/.next/standalone ./
COPY --from=builder --chown=app:app /app/.next/static ./.next/static
COPY --from=builder --chown=app:app /app/public ./public
COPY --from=builder --chown=app:app /app/prisma ./prisma
COPY --from=prisma --chown=app:app /root/.npm/_npx ./.npm/_npx
USER app
CMD ["node", "server.js", "--port", "$PORT"]