Skip to content

Commit

Permalink
[#157929686] Add a Docker stack for local development
Browse files Browse the repository at this point in the history
  • Loading branch information
lussoluca committed May 30, 2018
1 parent 577cca7 commit a8503f8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ruby:2.5.1-alpine

# Add files
WORKDIR /usr/src/developers.italia.it
ADD . .

# Install dependencies
RUN apk add --no-cache --virtual .build-deps build-base ruby-dev nodejs=8.9.3-r1
RUN bundle install

ENTRYPOINT ["/usr/src/developers.italia.it/start.sh"]
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: "3.3"

services:
developers.italia.it:
build: .
ports:
- "4000:4000"
volumes:
- .:/usr/src/developers.italia.it
environment:
- JEKYLL_NO_GITHUB=true
- JEKYLL_ENV=dev
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
networks:
- web

networks:
web:
external:
name: developers-italia-backend_web
5 changes: 5 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

npm install

bundle exec jekyll serve --incremental --force_polling -H 0.0.0.0 -P 4000

0 comments on commit a8503f8

Please sign in to comment.