Skip to content

Commit 8331c50

Browse files
Move package management to docker-compose command instead of the Dockerfile
1 parent 28337ae commit 8331c50

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

Dockerfile

Lines changed: 0 additions & 9 deletions
This file was deleted.

docker-compose.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ version: "3.9"
22

33
services:
44
api:
5-
build: .
5+
image: node:16.13
66
container_name: node-api-boilerplate
7-
command: yarn dev
7+
command: bash -c "yarn install && yarn dev"
8+
working_dir: /api
89
volumes:
910
- .:/api
1011
ports:

0 commit comments

Comments
 (0)