Compare commits

...

5 commits

Author SHA1 Message Date
JuliusR 7e2c1d58f6 add apk packages to Dockerfile.development: sqlite[-dev], tzdata 2021-12-18 18:52:14 +01:00
JuliusR 6eb1d60f03 use alpine:3.14 as Dockerfile.development's base (was: 3.5) 2021-12-18 18:52:14 +01:00
JuliusR a92d4a1a32 prefer '-b 0.0.0.0' over '--bind 0.0.0.0' (docker-compose.yml)
The latter yields the following error:

    `handle_argument_error': ERROR: "rails server" was called with
    arguments ["--bind", "0.0.0.0"] (Thor::InvocationError)
2021-12-18 18:52:14 +01:00
JuliusR dc1b336ba4 prefix 'rails server' command with 'bundle exec' (docker-compose.yml) 2021-12-18 18:52:14 +01:00
JuliusR 4ac6d08bc8 set Dockerfile's base image to ruby:2.7.5 2021-12-18 18:52:14 +01:00
3 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
FROM ruby:2.3
FROM ruby:2.7.5
RUN supercronicUrl=https://github.com/aptible/supercronic/releases/download/v0.1.3/supercronic-linux-amd64 && \
supercronicBin=/usr/local/bin/supercronic && \

View file

@ -1,7 +1,7 @@
FROM alpine:3.5
FROM alpine:3.14
ENV BUILD_PKGS="build-base ruby-dev libffi-dev libxml2-dev mariadb-dev" \
RUNTIME_PKGS="ruby ruby-json ruby-bigdecimal ruby-irb ruby-bundler ca-certificates mariadb-client" \
ENV BUILD_PKGS="build-base ruby-dev libffi-dev libxml2-dev mariadb-dev sqlite-dev" \
RUNTIME_PKGS="ruby ruby-json ruby-bigdecimal ruby-irb ruby-bundler ca-certificates mariadb-client sqlite tzdata" \
DEVELOPMENT_PKGS="bash"
RUN apk --no-cache add $BUILD_PKGS $RUNTIME_PKGS $DEVELOPMENT_PKGS

View file

@ -8,7 +8,7 @@ services:
build:
context: ./
dockerfile: Dockerfile.development
command: rails server --bind 0.0.0.0
command: bundle exec rails server -b 0.0.0.0
volumes:
- ./:/srv/app
ports: