Add OSEM_RUBY_VERSION as build argument on Docker setup

This commit is contained in:
Carlos Coelho 2020-07-10 12:43:26 -03:00
parent 6e6a6dcd39
commit 6a9b8c9f2b
3 changed files with 3 additions and 0 deletions

View file

@ -1,5 +1,6 @@
FROM osem/base
ARG CONTAINER_USERID
ARG OSEM_RUBY_VERSION
# Configure our user
RUN usermod -u $CONTAINER_USERID osem

View file

@ -4,3 +4,4 @@ services:
build:
args:
CONTAINER_USERID: 13042
OSEM_RUBY_VERSION: 2.5.8

View file

@ -10,6 +10,7 @@ services:
context: .
args:
CONTAINER_USERID: 1000
OSEM_RUBY_VERSION: 2.5.0
command: /osem/bin/osem-init.sh
depends_on:
- database