Skip to content

Commit

Permalink
add a docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
smadbe committed Sep 5, 2024
1 parent 8a6f708 commit 5de76a8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ruby:2.7.2

RUN bundle config --global frozen 1

WORKDIR /usr/src/app

COPY Gemfile Gemfile.lock ./
RUN bundle install

COPY . .


CMD ["bundle", "exec", "middleman", "server"]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ To build:
To deploy on S3 (requires AWS credentials in `.s3.sync` in the yaml format):

bundle exec middleman s3_sync

## Using Docker

Install Docker.

```
docker build . -t beoiwebsite
docker run -it -p 4567:4567 --mount type=bind,source="$(pwd)",target=/usr/src/app beoiwebsite
```

0 comments on commit 5de76a8

Please sign in to comment.