-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
129 additions
and
69 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 |
---|---|---|
|
@@ -9,6 +9,12 @@ | |
*.ap_ | ||
*.aab | ||
|
||
#environment files | ||
.env | ||
|
||
#secret | ||
WebAPI/secret.txt | ||
|
||
# Files for the ART/Dalvik VM | ||
*.dex | ||
|
||
|
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,20 @@ | ||
version: "3.8" | ||
services: | ||
web: | ||
build: . | ||
working_dir: /mail_api | ||
volumes: | ||
- "mail_api_db:/mail_api/db" | ||
ports: | ||
- "12121:12121" | ||
environment: | ||
SECRET_KEY_BASE: /run/secrets/mail_api_secret | ||
secrets: | ||
- mail_api_secret | ||
|
||
secrets: | ||
mail_api_secret: | ||
file: secret.txt | ||
|
||
volumes: | ||
mail_api_db: |
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,20 @@ | ||
from ruby:3.0.0 as runtime | ||
|
||
#RUN bundle config --global frozen 1 | ||
RUN apt-get update -y && apt-get upgrade -y | ||
|
||
WORKDIR mail_api/ | ||
|
||
copy mail_api/ ./ | ||
|
||
ENV BUNDLER_VERSION=2.2.3 | ||
|
||
RUN gem update --system | ||
RUN gem install rails | ||
RUN gem install bundler -v 2.2.3 | ||
RUN bundle install | ||
RUN rake app:update:bin | ||
|
||
EXPOSE 12121 | ||
ENV RAILS_ENV=production | ||
ENTRYPOINT ["rails", "s", "-p", "12121", "-b", "0.0.0.0", "-e", "production"] |
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 +1 @@ | ||
ruby-2.5.1 | ||
ruby-3.0.0 |
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