diff --git a/Dockerfile b/Dockerfile index 3e62eda..362f430 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] \ No newline at end of file