Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
hub/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
23 lines (16 sloc)
551 Bytes
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
FROM ruby:2.6 | |
RUN apt-get update \ | |
&& apt-get install -y sudo golang --no-install-recommends | |
RUN apt-get purge --auto-remove -y curl \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN groupadd -r app && useradd -r -g app -G sudo app \ | |
&& mkdir -p /home/app && chown -R app:app /home/app | |
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | |
USER app | |
# throw errors if Gemfile has been modified since Gemfile.lock | |
RUN bundle config --global frozen 1 | |
WORKDIR /home/app/workdir | |
COPY Gemfile Gemfile.lock ./ | |
RUN bundle install | |
ENV LANG C.UTF-8 | |
ENV USER app |