File tree Expand file tree Collapse file tree 4 files changed +16
-7
lines changed Expand file tree Collapse file tree 4 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -44,3 +44,8 @@ test/tours/*.gif
44
44
/yarn-error.log
45
45
yarn-debug.log *
46
46
.yarn-integrity
47
+
48
+ /config /master.key
49
+
50
+ # RubeMine
51
+ .idea
Original file line number Diff line number Diff line change 1
1
FROM ruby:2.7.1
2
2
3
3
# Install 3rd party dependencies.
4
- RUN apt update && apt -y install nodejs
4
+ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add && \
5
+ echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
6
+ apt update && \
7
+ apt -y install nodejs \
8
+ yarn
5
9
6
10
# Working directory.
7
11
RUN mkdir /app
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ services:
6
6
volumes :
7
7
- .:/app
8
8
- bundle-volume:/usr/local/bundle
9
+ - yarn-volume:/app/node_modules
9
10
ports :
10
11
- " 3000:3000"
11
12
# - "1234:1234" # RubyMine
@@ -23,4 +24,5 @@ services:
23
24
24
25
volumes :
25
26
bundle-volume :
27
+ yarn-volume :
26
28
db-volume :
Original file line number Diff line number Diff line change 1
- #! /bin/sh
1
+ #! /bin/bash
2
+
2
3
set -e
3
4
4
- # For development check if the gems as installed, if not
5
- # then install them.
6
- if ! [ bundle check ]; then
7
- bundle install
8
- fi
5
+ bundle install
6
+ yarn install --check-files --frozen-lockfile
9
7
10
8
# Remove a potentially pre-existing server.pid for Rails.
11
9
rm -f /app/tmp/pids/server.pid
You can’t perform that action at this time.
0 commit comments