File size: 671 Bytes
5d3c01b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Bootstrap tier publisher for Railway.
#
# Railway always prefers a root Dockerfile when one exists, even when a service
# is configured for Railpack. This dedicated image keeps the publisher isolated
# from the web application's root Dockerfile while retaining repo-root access to
# the shared bootstrap tier registry.

FROM node:24-alpine@sha256:a0b9bf06e4e6193cf7a0f58816cc935ff8c2a908f81e6f1a95432d679c54fbfd

WORKDIR /app

COPY scripts/package.json scripts/package-lock.json ./scripts/
RUN npm ci --prefix scripts --omit=dev --ignore-scripts

COPY scripts/ ./scripts/
COPY shared/ ./shared/

USER node

CMD ["node", "scripts/publish-bootstrap-tiers.mjs", "--loop"]