Skip to content

Commit

Permalink
fix docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
tigransimonyan committed Feb 29, 2024
1 parent 49382a1 commit f26a87f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ RUN npm install --production

COPY . .

CMD ["node", "index.js"]
RUN npm run build

CMD ["node", "./dist/index.js"]
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f26a87f

Please sign in to comment.