Created
July 2, 2019 02:25
-
-
Save viniciusalonso/70b493e029891a55789511966247ac18 to your computer and use it in GitHub Desktop.
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.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