SHARE
TWEET

Untitled

a guest Feb 17th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FROM crystallang/crystal:0.27.2
  2.  
  3. WORKDIR /opt/src
  4.  
  5. # Install nodejs
  6. COPY bin ./bin
  7. RUN bin/nodesource_11.x
  8. RUN apt-get update && apt-get install -y nodejs
  9.  
  10. # npm install
  11. COPY package-lock.json package.json ./
  12. RUN npm install
  13.  
  14. COPY shard.lock shard.yml ./
  15. RUN ls -la
  16. RUN shards install
  17.  
  18. COPY config config/
  19. COPY db     db/
  20. COPY public public/
  21. COPY src    src/
  22. COPY tasks  tasks/
  23.  
  24. COPY Procfile tasks.cr webpack.mix.js ./
  25.  
  26. EXPOSE 3001
  27. EXPOSE 3002
  28. EXPOSE 5000
  29.  
  30. ENV LUCKY_ENV development
  31. ENV DATABASE_URL postgres://docker.for.mac.localhost/database
  32.  
  33.  
  34. ENTRYPOINT ["/bin/bash"]
  35. CMD ["-c", "crystal run src/server.cr"]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top