mirror of
https://github.com/Blockstream/satellite-api.git
synced 2024-11-19 04:50:01 +01:00
add bundle update to Dockerfile
Signed-off-by: nitramiz <martin@blockstream.com>
This commit is contained in:
parent
fdd41caee2
commit
6565adae34
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user