Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: Update Dockerfile to use Alpine image as a base #2

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
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
31 changes: 24 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
FROM ruby:2.6.7-buster

# docker-ce-cli apt dependencies
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update

# TODO: Add python stuff
# Install python
RUN apt-get install -y python3 python3-pip

# The working location in the container is:
WORKDIR /app
# Install pip and setuptools
RUN apt-get update && apt-get install -y python3-setuptools

# Get speaker-verification repo
RUN git clone -b fix/logger-issues https://github.com/OnTrack-UG-Squad/speaker-verification.git
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is temporary until speaker-verification side of things is fixed.


WORKDIR /speaker-verification

RUN export PYTHONPATH=${PYTHONPATH}:/speaker-verification

# RUN python3 setup.py install

# We need bundler to get our gems...
# RUN pip3 install -r ./speaker-verification/requirements.txt

# Install bundler
RUN gem install bundler

# Now get the Gemfile and its lock... then install these gems
COPY Gemfile Gemfile.lock ./
# Setup working dir and copy in doubtfire speaker verification code
WORKDIR /app
COPY . /app/

# Install gems
RUN bundle install

CMD ruby app.rb
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source 'http://rubygems.org'

ruby '~> 2.6.6'
ruby '~> 2.6.7'

gem 'bunny', '>= 2.14.1'
gem 'bunny-pub-sub', '0.0.9', git: 'https://github.com/doubtfire-overseer/bunny-pub-sub'
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ DEPENDENCIES
rufo

RUBY VERSION
ruby 2.6.6p146
ruby 2.7.4-r0

BUNDLED WITH
2.2.16
53 changes: 0 additions & 53 deletions development.Dockerfile

This file was deleted.

23 changes: 0 additions & 23 deletions docker-compose.development.yml

This file was deleted.