Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Switch image base to alpine #204

Merged
merged 1 commit into from
Apr 19, 2020
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
24 changes: 16 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ WORKDIR /web
RUN npm ci
RUN npm run build

FROM ruby:2.6.3
FROM ruby:2.6.3-alpine
RUN gem install bundler:2.0.1

COPY ./api /postfacto
Expand All @@ -46,9 +46,22 @@ COPY --from=front-end /web/build /postfacto/client/

WORKDIR /postfacto

# Nokogiri dependencies
RUN apk add --update \
build-base \
libxml2-dev \
libxslt-dev

RUN apk add --update \
mariadb-dev \
postgresql-dev \
sqlite-dev

RUN apk add --update nodejs

RUN bundle config build.nokogiri --use-system-libraries
RUN bundle install --without test
RUN apt-get update -qq
RUN apt-get install -y nodejs

RUN bundle exec rake assets:precompile

ENV RAILS_ENV production
Expand All @@ -60,8 +73,3 @@ EXPOSE 3000

ENTRYPOINT "/entrypoint"






2 changes: 1 addition & 1 deletion deployment/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.0-beta
version: 0.2.0-beta

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down