Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Hi guys, I'm working on a small project for Uni and am using docker & docker-compose for the first time.
  2. My application is written in TypeScript (Node) and is using Postgres as DB.
  3.  
  4. No matter how much I tried, my docker-compose is always failing to build correctly...
  5. I would really appreciate it if you could land me a hand here 🙏
  6.  
  7. __This is my Dockerfile:__
  8. ```
  9. FROM node:8.3.0
  10. WORKDIR /usr/app
  11. COPY . .
  12. RUN node install
  13. EXPOSE 80:80
  14. CMD ["node", "start"]
  15. ```
  16. __npm scripts:__
  17. ```
  18. "scripts": {
  19. "postinstall": "tsc",
  20. "start": "node ./bin/Server.js"
  21. }
  22. ```
  23. How should I write down my `docker-compose.yml` to make it work?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement