osem-fcy/Dockerfile

24 lines
720 B
Text
Raw Permalink Normal View History

FROM registry.opensuse.org/opensuse/infrastructure/dale/containers/osem/base:latest
2024-10-28 14:07:53 +01:00
ARG CONTAINER_USERID=1000
# 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.
2024-10-28 14:07:53 +01:00
ADD Gemfile /osem/Gemfile
ADD Gemfile.lock /osem/Gemfile.lock
RUN chown -R osem /osem
2024-10-28 14:07:53 +01:00
WORKDIR /osem
USER osem
2024-10-28 14:07:53 +01:00
# Install our bundle & process manager
RUN bundle install --jobs=3 --retry=3; \
gem install foreman
2024-10-28 14:07:53 +01:00
# Run our command
CMD ["foreman", "start"]