Fix #11 image headers being sent as 'undefined'

This commit is contained in:
Alan Grainger
2024-11-03 11:22:38 +01:00
parent 80eaffed85
commit da5930fab1
3 changed files with 8 additions and 9 deletions
+6 -7
View File
@@ -2,12 +2,15 @@ FROM node:lts-slim
WORKDIR /app
COPY app/package.json ./
COPY app/ ./
RUN npm install --omit=dev
RUN npm install pm2 -g
COPY app/ ./
RUN chown -R node:node /app
USER node
RUN npm install --omit=dev
ENV NODE_ENV=production
@@ -15,10 +18,6 @@ ENV NODE_ENV=production
# dev-dependencies above to save space in the final build
RUN npx tsc --noCheck
RUN chown -R node:node /app
USER node
HEALTHCHECK --interval=30s --start-period=10s --timeout=5s CMD node /app/healthcheck.js || exit 1
CMD ["pm2-runtime", "dist/index.js" ]