From c2e692168541d866aae19da05035b8bf8af865c9 Mon Sep 17 00:00:00 2001 From: scarf Date: Thu, 22 Aug 2024 20:42:53 +0900 Subject: [PATCH] build: fix docker compose permission --- Dockerfile | 1 - docker-compose.yml | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 53f6af08f..22ca69088 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,5 +8,4 @@ COPY Gemfile . COPY Gemfile.lock . RUN echo -n "bundle version: " && bundle --version -RUN chmod u+s /bin/chown RUN bundle install diff --git a/docker-compose.yml b/docker-compose.yml index 75b187639..99d546752 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,8 @@ services: jekyll: - user: "${UID}:${GID}" build: . - command: sh -c "chown $UID / && bundle exec jekyll serve --incremental --host=0.0.0.0 " + command: "bundle exec jekyll serve --incremental --host=0.0.0.0" ports: - - '4000:4000' + - "4000:4000" volumes: - .:/srv/jekyll