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

View File

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