From d663540ff27730bc7d604a69d9b426e761708d19 Mon Sep 17 00:00:00 2001 From: GeorgeWebberley Date: Thu, 29 Jan 2026 07:40:30 +0100 Subject: [PATCH] Attempt 2 at fixing dockerfile --- Worker.Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Worker.Dockerfile b/Worker.Dockerfile index 1541adc..86344b4 100644 --- a/Worker.Dockerfile +++ b/Worker.Dockerfile @@ -1,18 +1,17 @@ FROM --platform=linux/amd64 node:20-bookworm-slim AS builder WORKDIR /app COPY package*.json ./ -RUN npm install +RUN npm install COPY . . -RUN npx tsc scripts/update-space.ts --outDir dist --module esnext --target esnext --moduleResolution node +RUN npx tsc --project tsconfig.json FROM --platform=linux/amd64 node:20-bookworm-slim WORKDIR /app ENV NODE_ENV=production COPY package*.json ./ RUN npm install --omit=dev -COPY --from=builder /app/dist/scripts/update-space.js ./scripts/ -COPY --from=builder /app/lib ./lib +COPY --from=builder /app/dist ./dist COPY --from=builder /app/config ./config RUN mkdir -p /app/data -CMD ["node", "scripts/update-space.js"] \ No newline at end of file +CMD ["node", "dist/scripts/update-space.js"] \ No newline at end of file