[Docker] Set correct pwd for yarn install

See #449
This commit is contained in:
Earlopain 2022-12-07 09:07:39 +01:00
parent 3294fabad5
commit 6d44c07c97
No known key found for this signature in database
GPG Key ID: 237AA8F8D0D0577F

View File

@ -5,7 +5,9 @@ RUN apk --no-cache add nodejs yarn ffmpeg vips \
postgresql12-client postgresql12-dev \
bash build-base git glib-dev jemalloc tzdata
RUN git config --global --add safe.directory /app
WORKDIR /app
RUN git config --global --add safe.directory $(pwd)
ENV LD_PRELOAD=/usr/lib/libjemalloc.so.2
@ -31,5 +33,4 @@ fi
# Stop bin/rails console from offering autocomplete
RUN echo "IRB.conf[:USE_AUTOCOMPLETE] = false" > ~/.irbrc
WORKDIR /app
CMD [ "shoreman" ]