質問編集履歴
4
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -180,7 +180,7 @@
|
|
180
180
|
|
181
181
|
```
|
182
182
|
|
183
|
-
dockerfile 書き換えました
|
183
|
+
dockerfile 書き換えました 最新です
|
184
184
|
|
185
185
|
FROM ruby:2.6.5
|
186
186
|
|
@@ -244,4 +244,8 @@
|
|
244
244
|
|
245
245
|
```
|
246
246
|
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
247
251
|
![イメージ説明](4388ebadcf900b27ec2b2977bbe620f1.png)
|
3
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -180,7 +180,7 @@
|
|
180
180
|
|
181
181
|
```
|
182
182
|
|
183
|
-
dockerfile
|
183
|
+
dockerfile 書き換えました
|
184
184
|
|
185
185
|
FROM ruby:2.6.5
|
186
186
|
|
@@ -194,7 +194,13 @@
|
|
194
194
|
|
195
195
|
|
196
196
|
|
197
|
+
RUN apt-get update -qq && \
|
198
|
+
|
197
|
-
|
199
|
+
apt-get install -y build-essential \
|
200
|
+
|
201
|
+
libpq-dev \
|
202
|
+
|
203
|
+
nodejs
|
198
204
|
|
199
205
|
|
200
206
|
|
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -175,3 +175,67 @@
|
|
175
175
|
Product License: Community Engine
|
176
176
|
|
177
177
|
```
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
```
|
182
|
+
|
183
|
+
dockerfile
|
184
|
+
|
185
|
+
FROM ruby:2.6.5
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
192
|
+
|
193
|
+
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs yarn
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
WORKDIR /Books/
|
202
|
+
|
203
|
+
COPY Gemfile ./Gemfile
|
204
|
+
|
205
|
+
COPY Gemfile.lock ./Gemfile.lock
|
206
|
+
|
207
|
+
RUN gem install bundler
|
208
|
+
|
209
|
+
RUN bundle install
|
210
|
+
|
211
|
+
COPY . /Books/
|
212
|
+
|
213
|
+
# waitライブラリの追加
|
214
|
+
|
215
|
+
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.6.0/wait /wait
|
216
|
+
|
217
|
+
# ライブラリの権限変更
|
218
|
+
|
219
|
+
RUN chmod +x /wait
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
# Add a script to be executed every time the container starts.
|
224
|
+
|
225
|
+
COPY entrypoint.sh /usr/bin/
|
226
|
+
|
227
|
+
RUN chmod +x /usr/bin/entrypoint.sh
|
228
|
+
|
229
|
+
ENTRYPOINT ["entrypoint.sh"]
|
230
|
+
|
231
|
+
EXPOSE 3000
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
# Start the main process.
|
236
|
+
|
237
|
+
CMD ["rails", "server", "-b", "0.0.0.0"]
|
238
|
+
|
239
|
+
```
|
240
|
+
|
241
|
+
![イメージ説明](4388ebadcf900b27ec2b2977bbe620f1.png)
|
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
原因らしきものがわかる方がいたらご教授お願いします。
|
14
14
|
|
15
|
-
|
15
|
+
[参考動画](https://www.youtube.com/watch?v=DS5HBTMG1RI&list=PLtpYHR4V8Mg-jbuk4yoXhXwJtreodnvzg&index=1)
|
16
16
|
|
17
17
|
```
|
18
18
|
|