-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 760 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (26 loc) · 760 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
30
31
32
33
34
35
# Use official Ruby image as base
FROM ruby:3.2
# Install dependencies for sass-embedded
RUN apt-get update && apt-get install -y \
build-essential \
git \
nodejs \
npm \
curl \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy original Gemfile
COPY Gemfile* ./
# Set bundle config to use system libraries
RUN bundle config build.sassc --disable-march-tune-native
# Install Ruby gems with verbose output
RUN bundle install --verbose
# Copy the rest of the application
COPY . .
# Expose port 4000
EXPOSE 4000
# Set environment variable for Jekyll
ENV JEKYLL_ENV=development
# Default command to run Jekyll
CMD ["bundle", "exec", "jekyll", "serve", "--host", "0.0.0.0", "--livereload", "--force_polling"]