Skip to content

Commit

Permalink
docker: use less image layers and update compose version
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton committed May 5, 2023
1 parent 9b4046f commit d63115a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y python3-pip she

WORKDIR /app

COPY Gemfile .

COPY Gemfile.lock .

COPY .pre-commit-config.yaml .
COPY Gemfile Gemfile.lock .pre-commit-config.yaml ./

RUN bundle install && pip3 install pre-commit && git init . && pre-commit install-hooks

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3'
version: '3.8'
services:
test:
build:
Expand Down

0 comments on commit d63115a

Please sign in to comment.