Sha256: 93176cb2e5d35e9a0f141c74191781ec336bfecdfaa1792a8e72565abd3f8767

Contents?: true

Size: 850 Bytes

Versions: 1

Compression:

Stored size: 850 Bytes

Contents

# Docker headers
FROM ruby:2.3.0-slim
MAINTAINER Bruno MEDICI <rest-ftp-daemon@bmconseil.com>


# Environment
ENV LANG=C.UTF-8
ENV INSTALL_PATH /app/
ENV app /app/


# Install packages, and first app gem for caching history only
RUN apt-get update && apt-get install -y build-essential git --fix-missing --no-install-recommends
RUN gem install bundler --no-rdoc --no-ri


# Change to INSTALL_PATH and install base packages
WORKDIR                             $INSTALL_PATH
ADD Gemfile                         $INSTALL_PATH
ADD Gemfile.lock                    $INSTALL_PATH
ADD rest-ftp-daemon.gemspec 		$INSTALL_PATH
RUN bundle install --system --without="development test" -j4


# Install app code
RUN mkdir -p                        $INSTALL_PATH
ADD . $INSTALL_PATH


# App run
EXPOSE 3000
CMD ["bin/rest-ftp-daemon", "-p", "3000", "-f", "start"]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rest-ftp-daemon-1.0.1 Dockerfile