mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
If it's too outdated it leads to weird failures in the test suite because we disallow outside requests in it.
27 lines
846 B
Docker
27 lines
846 B
Docker
FROM registry.opensuse.org/opensuse/infrastructure/dale/containers/osem/base:latest
|
|
ARG CONTAINER_USERID
|
|
|
|
# Configure our user
|
|
RUN usermod -u $CONTAINER_USERID osem
|
|
|
|
# We copy the Gemfiles into this intermediate build stage so it's checksum
|
|
# changes and all the subsequent stages (a.k.a. the bundle install call below)
|
|
# have to be rebuild. Otherwise, after the first build of this image,
|
|
# docker would use it's cache for this and the following stages.
|
|
COPY Gemfile /osem/
|
|
COPY Gemfile.lock /osem/
|
|
RUN chown -R osem /osem
|
|
|
|
# Continue as user
|
|
USER osem
|
|
WORKDIR /osem/
|
|
|
|
# Install our bundle
|
|
RUN bundle config set --local path 'vendor/bundle'; \
|
|
bundle install --jobs=4 --retry=3
|
|
|
|
# Install our process manager / update chromedriver
|
|
RUN gem install foreman; \
|
|
bundle exec bin/rails webdrivers:chromedriver:update
|
|
|
|
CMD ["foreman", "start"]
|