This commit is contained in:
parent
784f1cef07
commit
d663540ff2
|
|
@ -3,16 +3,15 @@ WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY . .
|
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
|
FROM --platform=linux/amd64 node:20-bookworm-slim
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install --omit=dev
|
RUN npm install --omit=dev
|
||||||
COPY --from=builder /app/dist/scripts/update-space.js ./scripts/
|
COPY --from=builder /app/dist ./dist
|
||||||
COPY --from=builder /app/lib ./lib
|
|
||||||
COPY --from=builder /app/config ./config
|
COPY --from=builder /app/config ./config
|
||||||
RUN mkdir -p /app/data
|
RUN mkdir -p /app/data
|
||||||
|
|
||||||
CMD ["node", "scripts/update-space.js"]
|
CMD ["node", "dist/scripts/update-space.js"]
|
||||||
Loading…
Reference in a new issue