Dockerfile 581 B

1234567891011121314151617181920212223
  1. FROM ruby:2.7-alpine
  2. WORKDIR /app
  3. ADD _config.yml /app/
  4. ADD _config_prod.yml /app/
  5. ADD Gemfile /app/
  6. ADD Gemfile.lock /app/
  7. ADD package.json /app/
  8. ADD pnpm-lock.yaml /app/
  9. ADD gulpfile.js /app/
  10. RUN apk add --virtual build-dependencies build-base
  11. RUN apk add npm --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community/
  12. RUN npm i -g pnpm
  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" ]