Sha256: a46836990bdbb6825b828a360698a38c704f2f5e2ce63e4d6bb84f4b3e2783b1
Contents?: true
Size: 929 Bytes
Versions: 7
Compression:
Stored size: 929 Bytes
Contents
version: "3.9" x-defaults: &defaults build: context: . dockerfile_inline: | FROM ruby:[%= RUBY_VERSION.sub(/\.\d+$/, '') %]-alpine RUN apk update && apk --no-cache add build-base ENV RODBOT_ENV="production" ENV RACK_ENV="production" ENV RACK_ROOT="/var/www" ENV TZ="[%= time_zone %]" RUN mkdir -p /var/www WORKDIR /var/www COPY . . COPY .bundle /usr/local/bundle RUN bundle config set without "development test" && \ bundle install --jobs 20 --retry 5 environment: - RODBOT_APP_HOST=0.0.0.0 - PRODUCTION_CREDENTIALS_KEY restart: "unless-stopped" services: rodbot: <<: *defaults command: "sh -c 'bundle exec rodbot start && sleep infinity'" ports: - "[%= Rodbot.config(:app, :port) %]" networks: default: driver: "bridge" ipam: driver: "default" config: - subnet: "172.16.72.0/24"
Version data entries
7 entries across 7 versions & 1 rubygems