mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 18:08:42 -05:00
26 lines
602 B
Docker
26 lines
602 B
Docker
# This Dockerfile is intended to be used with the
|
|
# docker-compose file in the same directory.
|
|
|
|
FROM jruby:9.2-jdk
|
|
|
|
ENV RACK_ENV=production
|
|
|
|
RUN apt-get update -qq && \
|
|
apt-get install -y --no-install-recommends make && \
|
|
apt-get clean autoclean && \
|
|
apt-get autoremove -y && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY docker/docker-entrypoint.sh /usr/local/bin/
|
|
|
|
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
|
|
|
COPY docker/Gemfile* ./
|
|
|
|
COPY ./ ./vmpooler-source
|
|
|
|
RUN gem install bundler && \
|
|
bundle config set --local jobs 3 && \
|
|
bundle install
|
|
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|