Skip to content

Commit 6fe4220

Browse files
committedApr 8, 2022
Use binstubs
1 parent 2e0b1e9 commit 6fe4220

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed
 

‎Dockerfile

+7-5
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ RUN gem.ruby3.1 install bundler -v "$(grep -A 1 "BUNDLED WITH" /hackweek/Gemfile
3939
gem.ruby3.1 install foreman
4040

4141
# Setup Ruby 3.1 as default
42-
RUN ln -sf /usr/bin/ruby.ruby3.1 /home/frontend/bin/ruby; \
43-
ln -sf /usr/bin/gem.ruby3.1 /home/frontend/bin/gem; \
44-
ln -sf /usr/bin/bundle.ruby3.1 /home/frontend/bin/bundle; \
45-
ln -sf /usr/bin/rake.ruby3.1 /home/frontend/bin/rake; \
46-
sudo update-alternatives --set rake /usr/bin/rake.ruby.ruby3.1
42+
RUN ln -sf /usr/bin/ruby.ruby3.1 /home/hackweek/bin/ruby; \
43+
ln -sf /usr/bin/gem.ruby3.1 /home/hackweek/bin/gem; \
44+
ln -sf /usr/bin/bundle.ruby3.1 /home/hackweek/bin/bundle; \
45+
ln -sf /usr/bin/rake.ruby3.1 /home/hackweek/bin/rake;
46+
ENV PATH /home/hackweek/bin:$PATH
4747

4848
WORKDIR /hackweek
4949
USER hackweek
@@ -61,3 +61,5 @@ RUN bundle config build.ffi --enable-system-libffi; \
6161
# Install our bundle
6262
RUN bundle install --jobs=3 --retry=3
6363

64+
# Run our command
65+
CMD ["foreman", "start", "-f", "Procfile"]

‎Procfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
web: bundle exec rails server -b 0.0.0.0
2-
search: bundle exec rake ts:rebuild NODETACH=true
1+
web: bundle exec bin/rails server -b 0.0.0.0
2+
search: bundle exec bin/rake ts:rebuild NODETACH=true

0 commit comments

Comments
 (0)