mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
20 lines
578 B
Text
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"]
|