-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #174 from portabilis/docker
Melhora configuração do Docker
- Loading branch information
Showing
5 changed files
with
115 additions
and
279 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
FROM ruby:2.6.6-slim-buster | ||
ARG RUBY_VERSION=2 | ||
|
||
FROM ruby:${RUBY_VERSION}-slim-buster | ||
|
||
ARG GEM_VERSION=3 | ||
ARG BUNDLER_VERSION=2 | ||
|
||
ENV APP_PATH /app | ||
ENV BUNDLE_PATH /box | ||
|
||
RUN apt-get update -qq | ||
RUN apt-get install -y \ | ||
build-essential \ | ||
libpq-dev nodejs \ | ||
npm \ | ||
git \ | ||
libpq-dev \ | ||
nodejs \ | ||
npm \ | ||
shared-mime-info | ||
|
||
RUN apt-get clean | ||
RUN npm i -g yarn | ||
RUN gem update --system 3.3.22 | ||
RUN gem install bundler -v ${BUNDLER_VERSION} | ||
|
||
RUN mkdir $APP_PATH | ||
|
||
WORKDIR $APP_PATH |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module URI | ||
def URI.escape(url) | ||
url | ||
end | ||
end |
Oops, something went wrong.