Skip to content

Commit

Permalink
webコンテナ
Browse files Browse the repository at this point in the history
  • Loading branch information
cureseven committed Sep 12, 2017
1 parent 6ebc562 commit ccb0e0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker-compose.yml
Expand Up @@ -9,7 +9,9 @@ services:
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
web:
build: .
build:
context: .
dockerfile: ./docker/Dockerfile-web
command: bundle exec rails s -p 3000
ports:
- 3000:3000
Expand Down
7 changes: 7 additions & 0 deletions docker/Dockerfile-web
@@ -0,0 +1,7 @@
FROM ruby:2.4.1
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev postgresql-client
RUN mkdir /app


ADD . /app
WORKDIR /app

0 comments on commit ccb0e0d

Please sign in to comment.