Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dockerfile #59

Closed
wants to merge 5 commits into from
Closed

Update dockerfile #59

wants to merge 5 commits into from

Commits on May 13, 2019

  1. use node:10.15.3-slim in the build stage

    build stage image: 999MB -> 243MB
    masnagam committed May 13, 2019
    Configuration menu
    Copy the full SHA
    ecf5f25 View commit details
    Browse the repository at this point in the history
  2. use Alpine-based image for reducing Docker image sizes

    build stage image: 243MB -> 171MB
    final image      : 226MB -> 154MB
    masnagam committed May 13, 2019
    Configuration menu
    Copy the full SHA
    703983a View commit details
    Browse the repository at this point in the history
  3. make NPM package before installation

    This makes it possible to detect installation issues due to a lack of
    required files before publishing the NPM package.
    
    The NPM package contains only required files.  So, the final image
    size can be reduced from 154MB to 99.6BM.
    masnagam committed May 13, 2019
    Configuration menu
    Copy the full SHA
    1d02797 View commit details
    Browse the repository at this point in the history
  4. remove the build stage

    build stage image: 171MB -> 0
    final image      : 99.6MB -> 99.9MB
    masnagam committed May 13, 2019
    Configuration menu
    Copy the full SHA
    9a502b3 View commit details
    Browse the repository at this point in the history
  5. add docker-compose.yml which is used only for testing purpose

    docker-compose.yml has been added for testing purpose.  A data volume
    which mounted at /usr/local/var/db/mirakurun is created automatically
    when running `docker-compose up`.  Use `docker-compose down` with the
    `-v` option if you want to remove the data volume at the shutdown.  Or
    remove it manually using `docker voluem rm`.
    masnagam committed May 13, 2019
    Configuration menu
    Copy the full SHA
    bc12f72 View commit details
    Browse the repository at this point in the history