From f050375b8a4887942ffd708198d67c382bcc26bf Mon Sep 17 00:00:00 2001 From: Thomas Clavier Date: Wed, 22 Nov 2023 21:33:09 +0100 Subject: [PATCH] Simplify docker build --- Dockerfile | 4 ++++ README.md | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ff2baef4f..d81422588 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,4 +10,8 @@ RUN apt-get update -y \ woff-tools \ woff2 +WORKDIR /workspace +COPY Gemfile /workspace +COPY Gemfile.lock /workspace +RUN bundle install CMD bash diff --git a/README.md b/README.md index 4c40d20d9..eeccfecc6 100644 --- a/README.md +++ b/README.md @@ -100,13 +100,11 @@ Then, run the Docker container: $ docker run --rm -it \ -u $(id -u):$(id -g) \ - -v $(pwd):$(pwd) \ - -w $(pwd) \ + -v $(pwd):/workspace \ fa-builder Within the container, build the font: - $ bundle install --path vendor/bundle $ npm ci $ make -C src/icons