github.com/googleapis/api-linter@v1.65.2/docs/Dockerfile (about)

     1  FROM ruby:3.3-alpine
     2  
     3  # Copy the existing code into the Docker image.
     4  #
     5  # This will copy everything *at build time* (not at runtime), so it is
     6  # still important to use `--mount` to get a reasonable development loop.
     7  # This makes the image work for both purposes, though.
     8  COPY . /code/
     9  WORKDIR /code/
    10  
    11  # Install bundler and gems for this project.
    12  RUN echo "gem: --no-ri --no-rdoc" > ~/.gemrc && \
    13    apk add --no-cache alpine-sdk && \
    14    gem update --system && \
    15    gem install bundler && \
    16    bundle install && \
    17    apk del --no-cache alpine-sdk && \
    18    rm ~/.gemrc
    19  
    20  # Install git. (Jekyll expects it.)
    21  RUN apk add --no-cache git
    22  
    23  # Set environment variables that GitHub Pages expects.
    24  ENV PAGES_REPO_NWO googleapis/googleapis.github.io
    25  
    26  # Expose appropriate ports.
    27  EXPOSE 4000
    28  EXPOSE 35729
    29  
    30  # Run Jekyll's dev server.
    31  # Reminder: Use -p with `docker run` to publish ports.
    32  ENTRYPOINT ["bundle", "exec", "jekyll", "serve", \
    33    "--destination", "/site", \
    34    "--host", "0.0.0.0"]