Dockerfile 602 B

123456789101112131415161718192021222324252627
  1. FROM ruby:2.7-alpine
  2. RUN apk add --no-cache nodejs pnpm && \
  3. apk add --no-cache --virtual build-dependencies build-base
  4. WORKDIR /app
  5. ADD package.json /app/
  6. ADD package-lock.json /app/
  7. ADD package.json /app/
  8. ADD Gemfile /app/
  9. ADD Gemfile.lock /app/
  10. ADD _config.yml /app/
  11. ADD gulpfile.js /app/
  12. # RUN apk update && apk add --virtual build-dependencies build-base
  13. RUN pnpm install
  14. RUN bundle config --global silence_root_warning 1 && bundler install --verbose
  15. # website
  16. EXPOSE 3000
  17. # website management (browser auto reload)
  18. EXPOSE 3001
  19. # run tabler
  20. ENTRYPOINT [ "pnpm", "run", "start-plugins" ]