Files
studio-admin-be/scripts/artifact.Dockerfile
T

15 lines
518 B
Docker

# syntax=docker/dockerfile:1
FROM node:22-bookworm-slim AS build
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl git python3 make g++ \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
COPY source/ ./
COPY runner.cjs /build-runner.cjs
ARG BUILD_REQUEST_ID
RUN --mount=type=secret,id=build-config,required=true \
test -n "$BUILD_REQUEST_ID" && timeout --signal=TERM --kill-after=10s 1800 node /build-runner.cjs
FROM scratch AS artifact
COPY --from=build /build-output/ /