-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 628 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 628 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
FROM ruby:3.2-alpine
# Install dependencies
RUN apk add --no-cache \
build-base \
git \
nodejs \
npm \
tzdata
# Set working directory
WORKDIR /app
# Copy Gemfile and Gemfile.lock
COPY Gemfile Gemfile.lock ./
# Add current platform to bundle and install gems
RUN bundle lock --add-platform x86_64-linux-musl && \
bundle config set --local without 'development test' && \
bundle install
# Copy the rest of the application
COPY . .
# Expose port 4000
EXPOSE 4000
# Default command to serve the site
CMD ["bundle", "exec", "jekyll", "serve", "--host", "0.0.0.0", "--port", "4000", "--livereload"]