Skip to content

Commit

Permalink
Merge branch 'main' into sammysteiner/12/improve-debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
SammySteiner authored Jun 14, 2024
2 parents af35910 + 8cafc7f commit 4bc2a02
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions app-rails/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,20 @@ ENV RAILS_ENV="production" \
BUNDLE_PATH="/usr/local/bundle"

# Install packages needed for deployment
RUN apt-get update -qq && \
apt-get install -y --no-install-recommends unzip python3-venv python-is-python3 curl libvips postgresql-client && \
rm -rf /var/lib/apt/lists /var/cache/apt/archives && \
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" && \
unzip awscli-bundle.zip && \
./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws && \
rm -rf ./awscli-bundle awscli-bundle.zip
RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends \
curl \
libvips \
postgresql-client \
python-is-python3 \
python3-venv \
unzip \
wget \
&& rm -rf /var/lib/apt/lists /var/cache/apt/archives \
&& curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" \
&& unzip awscli-bundle.zip \
&& ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws \
&& rm -rf ./awscli-bundle awscli-bundle.zip

# Install custom db migrate script
COPY bin/db-migrate /usr/bin/
Expand Down

0 comments on commit 4bc2a02

Please sign in to comment.