Skip to content

Commit

Permalink
add docker
Browse files Browse the repository at this point in the history
  • Loading branch information
jitsedesmet committed Oct 15, 2024
1 parent 0391876 commit d6c263f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_site
.sass-cache
.jekyll-metadata
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM ruby:3.1.4

#
WORKDIR /app
COPY Gemfile Gemfile.lock ./
RUN bundle install
#
##RUN bundle config build.nokogiri --use-system-libraries
##RUN bundle install
#
#
COPY . .
#
EXPOSE 4000
CMD JEKYLL_ENV=production jekyll serve
#CMD ruby --version
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
app:
restart: always
build:
context: .
network: host
ports:
- "4000:4000"

0 comments on commit d6c263f

Please sign in to comment.