7
Some checks failed
deploy / deploy (push) Failing after 14s

This commit is contained in:
Lee 2023-10-27 12:19:22 +01:00
parent e8ec3f6b26
commit c7fbc56e05

@ -1,12 +1,7 @@
FROM node:lts-alpine FROM node:alpine
ENV NODE_ENV=production
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"] COPY package*.json ./
RUN npm install --silent && mv node_modules ../ RUN npm install
COPY . .
RUN chown -R node /usr/src/app
USER node
RUN npx tsc RUN npx tsc
COPY . .
CMD ["npm", "start"] CMD [ "npm", "start" ]