add bundle update to Dockerfile

Signed-off-by: nitramiz <martin@blockstream.com>
This commit is contained in:
nitramiz 2020-03-10 07:57:06 -07:00
parent fdd41caee2
commit 6565adae34
No known key found for this signature in database
GPG Key ID: 2352C35346C5D534

View File

@ -14,18 +14,17 @@ RUN apk update && \
RUN mkdir /app && \
mkdir -p /data/ionosphere
COPY Gemfile /app
COPY Gemfile.lock /app
COPY . /app
WORKDIR /app
# install packages needed for building compiled gems; install gems; then delete build dependencies to keep Docker image small
ENV BUILD_PACKAGES sudo build-base ruby-dev libc-dev linux-headers openssl-dev git
RUN apk --update add --virtual build_deps $BUILD_PACKAGES && \
bundle update --bundler && \
bundle install && \
apk del build_deps && \
rm -rf /var/cache/apk/*
COPY . /app
RUN chown -R ionosphere:ionosphere /app
USER ionosphere