2024-10-31 14:17:58 -04:00
|
|
|
FROM node:lts-slim
|
2024-10-30 12:24:34 -04:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2024-11-01 03:55:54 -04:00
|
|
|
COPY package.json ./
|
|
|
|
|
2024-10-30 12:24:34 -04:00
|
|
|
RUN npm install --omit=dev
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2024-11-01 14:02:31 -04:00
|
|
|
ENV NODE_ENV=production
|
|
|
|
|
2024-11-01 03:55:54 -04:00
|
|
|
# Build without type checking, as we have removed the Typescript
|
|
|
|
# dev-dependencies above to save space in the final build
|
|
|
|
RUN npx tsc --noCheck
|
2024-10-30 12:24:34 -04:00
|
|
|
|
|
|
|
CMD [ "node", "dist/index.js" ]
|