diff --git a/Dockerfile b/Dockerfile index cd50550..a256c8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,6 @@ RUN npm install --production COPY . . -CMD ["node", "index.js"] +RUN npm run build + +CMD ["node", "./dist/index.js"] diff --git a/README.md b/README.md index e916037..f8d0b26 100644 --- a/README.md +++ b/README.md @@ -18,13 +18,19 @@ $ cp .env.example .env $ vim .env ``` -Run the server: +Run development: ``` -$ npm run server +$ npm run dev ``` -If you want to stop the server: +Run production: + +``` +$ npm start +``` + +Stop production: ``` $ npm run kill