Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.image }}
push: ${{ github.event_name != 'pull_request' }}
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.image }}
push: ${{ github.event_name != 'pull_request' }}
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.image }}
push: ${{ github.event_name != 'pull_request' }}
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.image }}
push: ${{ github.event_name != 'pull_request' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rails-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
type=raw,value=latest,enable=${{ matrix.is-latest == true }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./rails/${{ matrix.rails-version }}
push: ${{ github.event_name != 'pull_request' }}
Expand Down
10 changes: 5 additions & 5 deletions rails/6/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM alpine:3.16
FROM alpine:3.21

# Install required packages including OpenSSL
RUN apk add --no-cache \
bash make nodejs gcc g++ libc-dev git ruby libxml2-dev libxslt-dev \
libffi-dev yaml-dev openssl-dev zlib-dev readline-dev linux-headers \
libffi-dev yaml-dev openssl openssl-dev zlib-dev readline-dev linux-headers \
&& mkdir -p /usr/src/app \
&& git clone https://github.com/postmodern/ruby-install /usr/src/ruby-install \
&& cd /usr/src/ruby-install \
&& make install \
&& ruby-install --system ruby 3.0.6 -- --disable-install-rdoc \
--with-openssl-dir=/usr \
&& ruby-install --system ruby 3.1.2 -- --disable-install-rdoc --with-openssl-dir=/usr \
&& gem install 'bundler:2.2.33' 'rails:6.1.7.10' \
&& bundle config --global build.nokogiri --use-system-libraries \
&& apk del ruby \
Expand All @@ -25,4 +25,4 @@ ONBUILD COPY . /usr/src/app

EXPOSE 3000/tcp

CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
8 changes: 4 additions & 4 deletions rails/7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM alpine:3.21

# Install required packages including OpenSSL
RUN apk add --no-cache \
bash make nodejs gcc g++ libc-dev git ruby libxml2-dev libxslt-dev \
libffi-dev yaml-dev openssl-dev zlib-dev readline-dev linux-headers \
libffi-dev yaml-dev openssl openssl-dev zlib-dev readline-dev linux-headers \
&& mkdir -p /usr/src/app \
&& git clone https://github.com/postmodern/ruby-install /usr/src/ruby-install \
&& cd /usr/src/ruby-install \
&& make install \
&& ruby-install --system ruby 3.3.0 -- --disable-install-rdoc \
--with-openssl-dir=/usr \
&& ruby-install --system ruby 3.3.0 -- --disable-install-rdoc --with-openssl-dir=/usr \
&& gem install 'bundler:2.5.6' 'rails:7.2.2.1' \
&& bundle config --global build.nokogiri --use-system-libraries \
&& apk del ruby \
Expand All @@ -25,4 +25,4 @@ ONBUILD COPY . /usr/src/app

EXPOSE 3000/tcp

CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
8 changes: 4 additions & 4 deletions rails/8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM alpine:3.21

# Install required packages including OpenSSL
RUN apk add --no-cache \
bash make nodejs gcc g++ libc-dev git ruby libxml2-dev libxslt-dev \
libffi-dev yaml-dev openssl-dev zlib-dev readline-dev linux-headers \
libffi-dev yaml-dev openssl openssl-dev zlib-dev readline-dev linux-headers \
&& mkdir -p /usr/src/app \
&& git clone https://github.com/postmodern/ruby-install /usr/src/ruby-install \
&& cd /usr/src/ruby-install \
&& make install \
&& ruby-install --system ruby 3.3.0 -- --disable-install-rdoc \
--with-openssl-dir=/usr \
&& ruby-install --system ruby 3.3.0 -- --disable-install-rdoc --with-openssl-dir=/usr \
&& gem install 'bundler:2.5.6' 'rails:8.0.2' \
&& bundle config --global build.nokogiri --use-system-libraries \
&& apk del ruby \
Expand All @@ -25,4 +25,4 @@ ONBUILD COPY . /usr/src/app

EXPOSE 3000/tcp

CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]