Changeset View
Changeset View
Standalone View
Standalone View
Dockerfile
Show All 17 Lines | |||||
RUN mkdir -p /work | RUN mkdir -p /work | ||||
WORKDIR work | WORKDIR work | ||||
RUN gem install bundler | RUN gem install bundler | ||||
COPY Gemfile Gemfile | COPY Gemfile Gemfile | ||||
COPY Gemfile.lock Gemfile.lock | COPY Gemfile.lock Gemfile.lock | ||||
RUN bundle install | RUN bundle install | ||||
COPY . . | COPY . . | ||||
RUN mv _config-prod.yml _config.yml | |||||
RUN bundle exec jekyll build | RUN bundle exec jekyll build | ||||
# Hosting Layer | # Hosting Layer | ||||
FROM nginx | FROM nginx | ||||
COPY nginx.conf /etc/nginx/conf.d/default.conf | COPY nginx.conf /etc/nginx/conf.d/default.conf | ||||
COPY --from=0 /work/_site/ /usr/share/nginx/html/ | COPY --from=0 /work/_site/ /usr/share/nginx/html/ |