diff --git a/Dockerfile b/Dockerfile index a6834d32..476a391a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,5 @@ WORKDIR /refugerestrooms COPY Gemfile /refugerestrooms/Gemfile COPY Gemfile.lock /refugerestrooms/Gemfile.lock RUN bundle install +RUN apt-get install -y chromium COPY . /refugerestrooms diff --git a/docker-compose.yml b/docker-compose.yml index a300d2c4..af4080d7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,10 +4,14 @@ services: image: postgres web: build: . + privileged: true entrypoint: [setup/entry] command: bundle exec rails s -p 3000 -b '0.0.0.0' volumes: - .:/refugerestrooms + - /tmp/.X11-unix:/tmp/.X11-unix + environment: + - DISPLAY ports: - "3000:3000" depends_on: