🏡 index : github.com/captn3m0/outliner.git

author dhx <dh.tx.dev@dhx.at> 2024-02-22 22:43:25.0 +01:00:00
committer Nemo <me@captnemo.in> 2024-03-07 6:40:08.0 +00:00:00
commit
fd3826a622223d32f1773879398ba5b9f5dea71c [patch]
tree
cc043085f3a03d05407c4a2a25629990a42a301f
parent
787e838a5977fc4f1f2de479e09a818224020bde
download
fd3826a622223d32f1773879398ba5b9f5dea71c.tar.gz

Fixes the Docker build

Updated the base image to ruby:3.3-alpine3.19, install alpine-sdk to
be able to build all dependencies

Diff

 Dockerfile | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index b922cc3..e74dc91 100644
--- a/Dockerfile
+++ a/Dockerfile
@@ -1,12 +1,18 @@
FROM ruby:2.7-alpine
FROM ruby:3.3-alpine3.19

RUN apk add --no-cache git openssh-client rsync && \
    echo -e "StrictHostKeyChecking no" >> /etc/ssh/ssh_config && \
    mkdir /root/.ssh

WORKDIR /outliner
COPY . /outliner/

RUN gem install bundler && \
RUN echo "gem: --no-ri --no-rdoc" > ~/.gemrc && \
    apk add --no-cache alpine-sdk && \
    gem update --system && \
    gem install bundler && \
    bundle install && \
    apk add --no-cache git openssh-client rsync && \
    echo -e "StrictHostKeyChecking no" >> /etc/ssh/ssh_config && \
    mkdir /root/.ssh
    apk del --no-cache alpine-sdk && \
    rm ~/.gemrc

ENTRYPOINT ["/outliner/entrypoint.sh"]