forked from SUSE/hackweek
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (18 loc) · 770 Bytes
/
Dockerfile
File metadata and controls
23 lines (18 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM registry.opensuse.org/opensuse/infrastructure/dale/containers/hackweek/base:latest
ARG CONTAINER_USERID=1000
# Configure our user
RUN usermod -u $CONTAINER_USERID hackweek
# 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.
ADD Gemfile /hackweek/Gemfile
ADD Gemfile.lock /hackweek/Gemfile.lock
RUN chown -R hackweek /hackweek
WORKDIR /hackweek
USER hackweek
# Install our bundle & process manager
RUN bundle install --jobs=3 --retry=3; \
gem install foreman
# Run our command
CMD ["foreman", "start", "-f", "Procfile"]