jgthms-bulma
SUCCESS
9m 25s
History Source
SummaryIterations1Transcript7Dockerfile
Dockerfile23 lines · 675 chars
FROM ruby:3.4.9-alpine3.23

# Install build dependencies for native gems and Jekyll
RUN apk add --no-cache build-base ruby-dev zlib-dev libffi-dev libxml2-dev libxslt-dev

# Install Jekyll (no Gemfile required)
RUN gem update --system && gem install jekyll

# Set working directory for the repository
WORKDIR /work

# Copy the entire repository
COPY . .

# Build the Jekyll site from the docs directory (no Gemfile dependency)
RUN jekyll build --source docs --destination docs/_site

# Expose port for running the site
EXPOSE 4000

# Serve the site with Jekyll
CMD ["jekyll", "serve", "--host", "0.0.0.0", "--port", "4000", "--source", "docs", "--destination", "docs/_site"]