Skip to content

Commit 36e62cd

Browse files
committed
Version bump and Dockerfile update for fly
1 parent 1086cee commit 36e62cd

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

Dockerfile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM ruby:3.1.2
22

3+
ENV GEM_HOME=/opt/bundle
4+
RUN mkdir -p /opt/bundle /opt/node_modules
35
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
46

57
RUN apt-get -y update && \
@@ -14,8 +16,7 @@ apt-get clean
1416

1517
# setup ruby gems
1618
RUN gem update --system && \
17-
gem install bundler && \
18-
bundle config set --global --without test
19+
gem install bundler
1920

2021
# setup yarn
2122
RUN npm install -g yarn
@@ -26,20 +27,24 @@ RUN git clone --origin github --branch main --depth 1 https://github.com/hopsoft
2627

2728
# install application dependencies 1st time
2829
WORKDIR /opt/turbo_boost-commands
30+
RUN ln -s /opt/node_modules /opt/turbo_boost-commands/node_modules
2931
RUN yarn install --ignore-engines
3032
RUN bundle
3133

34+
# cleanup
35+
RUN rm -rf /usr/local/share/.cache/* /usr/local/bundle/cache/* /opt/bundle/cache/* /root/.bundle/cache/* /root/.cache/*
36+
3237
# prepare the environment
3338
ENV RAILS_ENV=production RAILS_LOG_TO_STDOUT=true RAILS_SERVE_STATIC_FILES=true
3439

3540
# prepare and run the application
36-
CMD git checkout main && \
37-
git pull --no-rebase github main && \
41+
CMD rm -rf /opt/turbo_boost-commands && \
42+
git clone --origin github --branch main --depth 1 https://github.com/hopsoft/turbo_boost-commands.git /opt/turbo_boost-commands && \
43+
cd /opt/turbo_boost-commands/test/dummy && \
44+
ln -s /opt/node_modules /opt/turbo_boost-commands/node_modules && \
3845
yarn install --ignore-engines && \
39-
cd test/dummy && \
4046
bundle && \
41-
rm -f tmp/pids/server.pid && \
47+
rm -rf tmp/pids/server.pid /usr/local/share/.cache/* /usr/local/bundle/cache/* /opt/bundle/cache/* /root/.bundle/cache/* /root/.cache/* && \
4248
bin/rails db:create db:migrate && \
43-
bin/rails assets:clobber && \
4449
bin/rails assets:precompile && \
4550
bin/rails s --binding=0.0.0.0 --port=3000

lib/turbo_boost/commands/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module TurboBoost
44
module Commands
5-
VERSION = "0.0.10"
5+
VERSION = "0.0.11"
66
end
77
end

0 commit comments

Comments
 (0)