Skip to content

Instantly share code, notes, and snippets.

@viniciusalonso
Created July 2, 2019 02:25
Show Gist options
  • Save viniciusalonso/70b493e029891a55789511966247ac18 to your computer and use it in GitHub Desktop.
Save viniciusalonso/70b493e029891a55789511966247ac18 to your computer and use it in GitHub Desktop.
FROM ruby:2.5
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client sudo
EXPOSE 3000
RUN useradd -ms /bin/bash eichef
RUN usermod -aG sudo eichef
RUN echo "eichef ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER eichef
WORKDIR /home/eichef/api
ADD . .
RUN sudo chown -R eichef *
RUN bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment