質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -128,6 +128,30 @@
|
|
128
128
|
|
129
129
|
```
|
130
130
|
|
131
|
+
FROM ruby:2.5.0
|
132
|
+
|
133
|
+
#パッケージのインストール
|
134
|
+
|
135
|
+
RUN apt-get update -qq && apt-get install -y build-essential \
|
136
|
+
|
137
|
+
libpq-dev \
|
138
|
+
|
139
|
+
nodejs
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
#作業ディレクトリ名をAPP_ROOTに割り当てて、以下$APP_ROOTで参照
|
144
|
+
|
145
|
+
ENV APP_ROOT /appname
|
146
|
+
|
147
|
+
WORKDIR $APP_ROOT
|
148
|
+
|
149
|
+
# ホスト側(ローカル)のGemfileを追加す
|
150
|
+
|
151
|
+
ADD ./Gemfile $APP_ROOT/Gemfile
|
152
|
+
|
153
|
+
ADD ./Gemfile.lock $APP_ROOT/Gemfile.lock
|
154
|
+
|
131
155
|
# Gemfileのbundle install
|
132
156
|
|
133
157
|
RUN bundle install
|
@@ -150,7 +174,11 @@
|
|
150
174
|
|
151
175
|
# Start the main process.
|
152
176
|
|
153
|
-
CMD ["bin/rails", "s
|
177
|
+
CMD ["bin/rails", "s", "-b", "0.0.0.0"]
|
178
|
+
|
179
|
+
#CMD ["/Users/username/.rbenv/shims/rails", "server", "-b", "0.0.0.0"]
|
180
|
+
|
181
|
+
|
154
182
|
|
155
183
|
|
156
184
|
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -65,6 +65,20 @@
|
|
65
65
|
```
|
66
66
|
|
67
67
|
### 該当のソースコード
|
68
|
+
|
69
|
+
./entrypoint.sh
|
70
|
+
|
71
|
+
```ここに言語を入力
|
72
|
+
|
73
|
+
#!/bin/sh
|
74
|
+
|
75
|
+
npm run build
|
76
|
+
|
77
|
+
exec "$@"
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
|
68
82
|
|
69
83
|
docker-compose.yml
|
70
84
|
|