Skip to content

Commit

Permalink
fix: more improvements to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
elcharitas committed Nov 25, 2023
1 parent d95b2cf commit 77f7b15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ COPY yarn.lock ./
RUN yarn
COPY run.mjs ./

CMD node run.mjs

EXPOSE 7007

CMD ["npm", "run", "start"]
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ services:
- "7007:7007"
env_file:
- .env
environment:
ADMIN_DID: ${ADMIN_DID}
DB_URL: ${DB_URL}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "run.mjs",
"scripts": {
"start": "ceramic daemon --config ./daemon.config.json"
"start": "node run.mjs && ceramic daemon --config ./daemon.config.json"
},
"keywords": [],
"author": "",
Expand Down

0 comments on commit 77f7b15

Please sign in to comment.