mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-22 03:51:33 +00:00
* chore: add a Dockerfile * chore: add a Makefile to support Docker operations * docs: update documentation to include Docker support * ci: add step to check Docker build * fix: typo in docker image reference * docs: add information about make help * docs: update docker documentation to use advance md features Co-authored-by: David Lakin <github@themoderndev.com> * update the make serve log message to have URL * update to newer jekyll docker image for ruby version --------- Co-authored-by: Ulises Gascón <ulisesgascongonzalez@gmail.com> Co-authored-by: David Lakin <github@themoderndev.com> Co-authored-by: Jon Church <me@jonchurch.com>
24 lines
549 B
Docker
24 lines
549 B
Docker
# Use the official Jekyll image as the base
|
|
FROM jekyll/jekyll:4.2.2
|
|
|
|
# Set the working directory
|
|
WORKDIR /usr/src/app
|
|
|
|
# Change the permissions of the working directory
|
|
RUN chmod 777 /usr/src/app
|
|
|
|
# Copy the Gemfile into the image
|
|
COPY Gemfile ./
|
|
|
|
# Install the gems and delete the Gemfile.lock
|
|
RUN bundle install --no-cache && rm Gemfile.lock
|
|
|
|
# Copy the rest of the project into the image
|
|
COPY . .
|
|
|
|
# Expose the port Jekyll will run on
|
|
EXPOSE 4000
|
|
|
|
# The default command to run Jekyll
|
|
CMD ["jekyll", "serve", "--host", "0.0.0.0", "--livereload"]
|