aider/scripts/Dockerfile.jekyll
Paul Gauthier 59e433996e moved
2024-05-15 11:00:18 -07:00

20 lines
578 B
Text

# Use the official Jekyll image from Docker Hub
FROM jekyll/jekyll:latest
# Set the working directory
WORKDIR /srv/jekyll
# Copy the current directory contents into the container at /srv/jekyll
COPY . /srv/jekyll
# Install any needed packages specified in Gemfile
RUN bundle install
# Expose port 4000 to the host
EXPOSE 4000
# Health check to ensure the server is running
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s CMD curl -f http://localhost:4000 || exit 1
# Run Jekyll server
CMD ["jekyll", "serve", "--host", "0.0.0.0", "--port", "4000", "--verbose"]