Skip to content

Commit 384d653

Browse files
committed
Get Dockerfile working for new site.
1 parent d8747fd commit 384d653

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Dockerfile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM ruby as build-env
2+
WORKDIR /build
3+
4+
# Set default locale for the environment
5+
ENV LC_ALL C.UTF-8
6+
ENV LANG en_US.UTF-8
7+
ENV LANGUAGE en_US.UTF-8
8+
9+
RUN apt-get update && apt-get install -y build-essential ruby-dev nodejs
10+
RUN gem update && gem install bundler
11+
COPY Gemfile *.gemspec ./
12+
RUN bundle install
13+
COPY . ./
14+
RUN JEKYLL_ENV=production bundle exec jekyll build --verbose
15+
16+
FROM nginx:mainline-alpine
17+
COPY --from=build-env --chown=nginx:nginx /build/_site /usr/share/nginx/html
18+
19+
CMD ["nginx", "-g", "daemon off;"]

0 commit comments

Comments
 (0)