forked from flipp-oss/deimos
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
23 lines (17 loc) · 788 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ruby:2.5.5-stretch
RUN apt-get update && \
apt-get -y install curl git openssh-client openssl nodejs awscli
RUN apt-get install -yq libpq-dev net-tools mysql-client wait-for-it
ENV DOCKERIZE_VERSION v0.6.1
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
WORKDIR /opt/deimos
COPY deimos.gemspec /opt/deimos/deimos.gemspec
COPY lib/deimos/version.rb /opt/deimos/lib/deimos/version.rb
COPY Gemfile /opt/deimos/Gemfile
COPY Gemfile.lock /opt/deimos/Gemfile.lock
RUN bundle install
ADD . .
ENTRYPOINT ["bundle", "exec"]
CMD ["bundle", "exec", "rspec"]