Skip to content

Commit 3db6f74

Browse files
committed
Update Docker compose templates
1 parent b138c9a commit 3db6f74

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## Main
22

3-
Nothing so far
3+
#### Changes
4+
* Update Docker compose templates
45

56
## 0.5.0
67

lib/templates/deploy/docker-split/compose.yaml.gerb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
version: "3.9"
2-
31
x-defaults: &defaults
42
build:
53
context: .
64
dockerfile_inline: |
75
FROM ruby:[%= RUBY_VERSION.sub(/\.\d+$/, '') %]-alpine
8-
RUN apk update && apk --no-cache add build-base
6+
RUN apk update && apk --no-cache add build-base tzdata libffi
97
ENV RODBOT_ENV="production"
108
ENV RACK_ENV="production"
119
ENV RACK_ROOT="/var/www"
@@ -15,7 +13,7 @@ x-defaults: &defaults
1513
COPY . .
1614
COPY .bundle /usr/local/bundle
1715
RUN bundle config set without "development test" && \
18-
bundle install --jobs 20 --retry 5
16+
bundle install
1917
environment:
2018
- RODBOT_APP_HOST=0.0.0.0
2119
- RODBOT_APP_URL=http://app

lib/templates/deploy/docker/compose.yaml.gerb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
version: "3.9"
2-
31
x-defaults: &defaults
42
build:
53
context: .
64
dockerfile_inline: |
75
FROM ruby:[%= RUBY_VERSION.sub(/\.\d+$/, '') %]-alpine
8-
RUN apk update && apk --no-cache add build-base
6+
RUN apk update && apk --no-cache add build-base tzdata libffi
97
ENV RODBOT_ENV="production"
108
ENV RACK_ENV="production"
119
ENV RACK_ROOT="/var/www"
@@ -15,7 +13,7 @@ x-defaults: &defaults
1513
COPY . .
1614
COPY .bundle /usr/local/bundle
1715
RUN bundle config set without "development test" && \
18-
bundle install --jobs 20 --retry 5
16+
bundle install
1917
environment:
2018
- RODBOT_APP_HOST=0.0.0.0
2119
- PRODUCTION_CREDENTIALS_KEY

0 commit comments

Comments
 (0)