mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
docker: use less image layers and update compose version
https://stackoverflow.com/questions/30256386/how-to-copy-multiple-files-in-one-layer-using-a-dockerfile https://docs.docker.com/compose/compose-file/compose-file-v3/
This commit is contained in:
+1
-5
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
version: '3'
|
||||
version: '3.8'
|
||||
services:
|
||||
test:
|
||||
build:
|
||||
|
||||
Reference in New Issue
Block a user