This repository has been archived by the owner on Jan 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #440 from netsgnut/use-alpine-build-for-docker
Use alpine build for Docker
- Loading branch information
Showing
2 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
|
||
command_exists () { | ||
type "$1" &> /dev/null ; | ||
|