-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (20 loc) · 712 Bytes
/
Dockerfile
File metadata and controls
29 lines (20 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Use Jekyll base image with ARM64 support
FROM --platform=linux/arm64 jekyll/jekyll:4.2.2
# Set working directory
WORKDIR /srv/jekyll
# Install Node.js and npm for data extraction tools
RUN apk add --no-cache nodejs npm
# Copy package.json for npm dependencies
COPY package.json ./
# Install npm dependencies (glob, js-yaml for validation tools)
RUN npm install
# Copy Gemfile first for dependency management
COPY Gemfile* ./
# Install bundler and dependencies
RUN bundle install
# Copy rest of site content
COPY . .
# Expose port 4000
EXPOSE 4000
# Use bundle exec to avoid gem conflicts
CMD ["bundle", "exec", "jekyll", "serve", "--host", "0.0.0.0", "--port", "4000", "--baseurl", "/dnd", "--watch"]