From beda962014cf685bbb4eba03bfc143bdff2b6e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=A1=EC=A4=80=EC=84=AD?= Date: Thu, 30 Nov 2023 23:01:29 +0900 Subject: [PATCH] :bug: Fix Dockerfile-was sharp Package Version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - sharp package 버전 명시로 리눅스 환경에서 실행 안되는 문제 해결 --- .github/workflows/cicd.yml | 1 - .gitignore | 3 ++- Dockerfile-was | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 960827a..a50d9db 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -26,7 +26,6 @@ jobs: - name: Test and Build with yarn run: | - SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm_config_arch=x64 npm_config_platform=linux yarn workspace server add sharp yarn install yarn workspace client build diff --git a/.gitignore b/.gitignore index 6d0ee45..a0f1997 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .vscode -.DS_Store \ No newline at end of file +.DS_Store +.idea \ No newline at end of file diff --git a/Dockerfile-was b/Dockerfile-was index f417898..42fe700 100644 --- a/Dockerfile-was +++ b/Dockerfile-was @@ -4,7 +4,7 @@ WORKDIR /app ADD . /app -RUN SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm_config_arch=x64 npm_config_platform=linux yarn workspace server add sharp +RUN SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm_config_arch=x64 npm_config_platform=linuxmusl yarn workspace server add sharp@0.32.1 RUN yarn workspace server build EXPOSE 3000