Skip to content
Closed
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
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ env:
jobs:
build_docker:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16-alpine
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -50,10 +53,8 @@ jobs:
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
push: ${{ github.ref_name == 'main' }}
tags: |
${{ steps.get-tag-latest.outputs.tags }}
${{ steps.get-tag-sha.outputs.tags }}
cache-from: type=gha
cache-to: type=gha
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.4.1
FROM ruby:3.4.1@sha256:45ca46a37e16d4f0b383ff6f400edc7e096361ac05c91ead86481ecc332e665e

ENV RACK_ENV=production
ENV RAILS_ENV=production
Expand All @@ -9,13 +9,10 @@ EXPOSE 8080

SHELL ["/bin/bash", "-c"]

WORKDIR /app
ADD Gemfile Gemfile.lock /app/
RUN gem install bundler:$BUNDLER_VERSION && bundle install

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
supervisor locales nodejs vim nano \
procps bzip2 libffi-dev libgmp-dev libssl-dev libyaml-dev zlib1g-dev libpq-dev \
build-essential python3-pkg-resources supervisor locales nodejs vim nano \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

Expand All @@ -39,6 +36,10 @@ RUN curl -fsSLO "$SUPERCRONIC_URL" \
&& mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
&& ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic

WORKDIR /app
ADD Gemfile Gemfile.lock /app/
RUN gem install bundler:$BUNDLER_VERSION && bundle install

ADD docker/supervisord.conf /etc/supervisord.conf
ADD docker/start.sh /app/
ADD . /app
Expand Down
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ group :development, :test do
gem "coveralls_reborn", require: false
gem "debug"
gem "factory_bot"
gem "pry-byebug"
gem "rspec"
gem "rspec-rails"
gem "simplecov"
Expand Down
10 changes: 0 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ GEM
bootsnap (1.18.4)
msgpack (~> 1.2)
builder (3.3.0)
byebug (11.1.3)
capybara (3.40.0)
addressable
matrix
Expand All @@ -106,7 +105,6 @@ GEM
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
coderay (1.1.3)
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
concurrent-ruby (1.3.5)
Expand Down Expand Up @@ -184,7 +182,6 @@ GEM
net-smtp
marcel (1.0.4)
matrix (0.4.2)
method_source (1.1.0)
mini_mime (1.1.5)
mini_portile2 (2.8.8)
minitest (5.25.4)
Expand All @@ -210,12 +207,6 @@ GEM
ast (~> 2.4.1)
racc
pg (1.5.9)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.10.1)
byebug (~> 11.0)
pry (>= 0.13, < 0.15)
psych (5.2.3)
date
stringio
Expand Down Expand Up @@ -417,7 +408,6 @@ DEPENDENCIES
httparty
nokogiri (~> 1.18.0)
pg
pry-byebug
puma (~> 6.4)
rack-ssl
rails (~> 8.0.0)
Expand Down