Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #440 from netsgnut/use-alpine-build-for-docker
Browse files Browse the repository at this point in the history
Use alpine build for Docker
  • Loading branch information
Jonathan Claudius authored Oct 29, 2018
2 parents 66eb6bc + 2c4a177 commit 83aa8b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
FROM ruby
FROM ruby:alpine
MAINTAINER Jonathan Claudius
ENV PROJECT=github.com/mozilla/ssh_scan

RUN mkdir /app
ADD . /app
WORKDIR /app

RUN gem install bundler
RUN bundle install
# required for ssh-keyscan
RUN apk --update add openssh-client

RUN apk --update add --virtual build-dependencies ruby-dev build-base && \
gem install bundler --no-ri --no-rdoc && \
bundle install && \
apk del build-dependencies && \
rm -rf /var/cache/apk/*

CMD /app/bin/ssh_scan
2 changes: 1 addition & 1 deletion spec/ssh_scan/integration.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

command_exists () {
type "$1" &> /dev/null ;
Expand Down

0 comments on commit 83aa8b0

Please sign in to comment.