diff --git a/Dockerfile b/Dockerfile index f730115..9734bac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,8 @@ RUN yarn build FROM node:18 COPY --from=build-env /app/build /app -COPY docker-package.json /app/package.json +COPY package.json /app/package.json WORKDIR /app +env NODE_ENV production +RUN npm install CMD ["index.js"] \ No newline at end of file diff --git a/docker-package.json b/docker-package.json deleted file mode 100644 index 1632c2c..0000000 --- a/docker-package.json +++ /dev/null @@ -1 +0,0 @@ -{"type": "module"} \ No newline at end of file