Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM node:22-alpine
FROM node:24-alpine

WORKDIR /app

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

COPY sdk/typescript/package.json sdk/typescript/package-lock.json ./sdk/typescript/
RUN npm --prefix sdk/typescript ci

Expand Down
13 changes: 13 additions & 0 deletions test/repo-cleanup.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,19 @@ test("runtime scripts execute TypeScript entrypoints directly", async () => {
assert.equal(tsconfig.compilerOptions.checkJs, undefined);
});

test("Railway Docker image installs root runtime dependencies", async () => {
const dockerfile = await readFile("Dockerfile", "utf8");

assert.match(dockerfile, /^FROM node:24-alpine$/m);
assert.match(dockerfile, /^COPY package\.json package-lock\.json \.\/$/m);
assert.match(dockerfile, /^RUN npm ci --omit=dev --ignore-scripts$/m);

const rootInstallIndex = dockerfile.indexOf("RUN npm ci --omit=dev --ignore-scripts");
const sourceCopyIndex = dockerfile.indexOf("COPY . .");
assert.ok(rootInstallIndex >= 0);
assert.ok(sourceCopyIndex > rootInstallIndex);
});

async function findSideBySideSourceDuplicates(roots) {
const duplicates = [];

Expand Down
Loading