mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Adapt Dockerfile to osem/base changes
This commit is contained in:
parent
974e850dd7
commit
c9deeac3b2
1 changed files with 8 additions and 11 deletions
19
Dockerfile
19
Dockerfile
|
|
@ -1,5 +1,5 @@
|
||||||
FROM registry.opensuse.org/opensuse/infrastructure/dale/containers/osem/base:latest
|
FROM registry.opensuse.org/opensuse/infrastructure/dale/containers/osem/base:latest
|
||||||
ARG CONTAINER_USERID
|
ARG CONTAINER_USERID=1000
|
||||||
|
|
||||||
# Configure our user
|
# Configure our user
|
||||||
RUN usermod -u $CONTAINER_USERID osem
|
RUN usermod -u $CONTAINER_USERID osem
|
||||||
|
|
@ -8,19 +8,16 @@ RUN usermod -u $CONTAINER_USERID osem
|
||||||
# changes and all the subsequent stages (a.k.a. the bundle install call below)
|
# 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,
|
# have to be rebuild. Otherwise, after the first build of this image,
|
||||||
# docker would use it's cache for this and the following stages.
|
# docker would use it's cache for this and the following stages.
|
||||||
COPY Gemfile /osem/
|
ADD Gemfile /osem/Gemfile
|
||||||
COPY Gemfile.lock /osem/
|
ADD Gemfile.lock /osem/Gemfile.lock
|
||||||
RUN chown -R osem /osem
|
RUN chown -R osem /osem
|
||||||
|
|
||||||
# Continue as user
|
WORKDIR /osem
|
||||||
USER osem
|
USER osem
|
||||||
WORKDIR /osem/
|
|
||||||
|
|
||||||
# Install our bundle
|
# Install our bundle & process manager
|
||||||
RUN bundle config set --local path 'vendor/bundle'; \
|
RUN bundle install --jobs=3 --retry=3; \
|
||||||
bundle install --jobs=4 --retry=3
|
gem install foreman
|
||||||
|
|
||||||
# Install our process manager
|
|
||||||
RUN sudo gem install foreman
|
|
||||||
|
|
||||||
|
# Run our command
|
||||||
CMD ["foreman", "start"]
|
CMD ["foreman", "start"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue