Add back libpq-dev

This commit is contained in:
Ryan W
2023-03-24 12:51:19 -07:00
committed by Ryan Williams
parent 0588c114cc
commit 10d5ac7372
+2 -3
View File
@@ -20,12 +20,14 @@ FROM base as build
RUN apt-get update -qq && apt-get install -yq --no-install-recommends \ RUN apt-get update -qq && apt-get install -yq --no-install-recommends \
build-essential \ build-essential \
gnupg2 \ gnupg2 \
libpq-dev \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN gem update --system && gem install bundler RUN gem update --system && gem install bundler
# Install application gems # Install application gems
COPY Gemfile Gemfile.lock ./ COPY Gemfile Gemfile.lock ./
# TODO: consolidate bundle config better, currently split between ENV and `bundle config` # TODO: consolidate bundle config better, currently split between ENV and `bundle config`
RUN bundle config frozen true \ RUN bundle config frozen true \
&& bundle config jobs 4 \ && bundle config jobs 4 \
@@ -56,9 +58,6 @@ FROM base
# Install packages needed for deployment # Install packages needed for deployment
# RUN apt-get update -qq && apt-get install -yq --no-install-recommends \ # RUN apt-get update -qq && apt-get install -yq --no-install-recommends \
# build-essential \
# gnupg2 \
# libpq-dev \
# && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Copy built artifacts: gems, application # Copy built artifacts: gems, application