diff --git a/Dockerfile b/Dockerfile index ce68e6a..b98f0a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,20 @@ FROM node:20 AS build WORKDIR /usr/src/app COPY package.json . -RUN npm install && npm install typescript -g +COPY yarn.lock . +RUN yarn install --development COPY . . -RUN npm run build +RUN yarn run build FROM node:20-alpine WORKDIR /usr/src/app COPY package.json . -RUN npm install --production +RUN yarn install --production COPY --from=build /usr/src/app/dist dist +COPY --from=build /usr/src/app/build build EXPOSE 8025 -CMD ["npm", "run", "start"] \ No newline at end of file +CMD ["node", "dist/server.js"] \ No newline at end of file