Skip to content
Open
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.3-slim
FROM ubuntu:16.04

# some basic stuff
RUN mkdir /usr/src/app
Expand Down
2 changes: 2 additions & 0 deletions app/install_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ if [ -z ${PACKAGES} ]; then
else
echo 'installing packages'
apt-get update
apt-get install -y ruby2.3 ruby2.3-dev
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are not going with using the ruby based docker images we might as well just pass these in via ENV vars so it could be used against multiple versions of ruby. I threw this together quickly.

IFS=',' read -ra INSTALL_PACKAGES <<< $PACKAGES
for i in "${INSTALL_PACKAGES[@]}"; do
echo $i
apt-get install -y $i
done
echo 'installing Gems'
gem install bundle
bundle install
echo 'listing installed packages:'
dpkg --get-selections
Expand Down