質問編集履歴
5
文の書き直し。
test
CHANGED
File without changes
|
test
CHANGED
@@ -100,7 +100,7 @@
|
|
100
100
|
|
101
101
|
```
|
102
102
|
|
103
|
-
Dockerfileは以下のような内容でした
|
103
|
+
Dockerfileは以下のような内容でした。
|
104
104
|
|
105
105
|
```ここに言語を入力
|
106
106
|
|
4
Dockerfileを追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -100,6 +100,84 @@
|
|
100
100
|
|
101
101
|
```
|
102
102
|
|
103
|
+
Dockerfileは以下のような内容でした
|
104
|
+
|
105
|
+
```ここに言語を入力
|
106
|
+
|
107
|
+
# Install the base requirements for the app.
|
108
|
+
|
109
|
+
# This stage is to support development.
|
110
|
+
|
111
|
+
FROM python:alpine AS base
|
112
|
+
|
113
|
+
WORKDIR /app
|
114
|
+
|
115
|
+
COPY requirements.txt .
|
116
|
+
|
117
|
+
RUN pip install -r requirements.txt
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
# Run tests to validate app
|
122
|
+
|
123
|
+
FROM node:12-alpine AS app-base
|
124
|
+
|
125
|
+
WORKDIR /app
|
126
|
+
|
127
|
+
COPY app/package.json app/yarn.lock ./
|
128
|
+
|
129
|
+
RUN yarn install
|
130
|
+
|
131
|
+
COPY app/spec ./spec
|
132
|
+
|
133
|
+
COPY app/src ./src
|
134
|
+
|
135
|
+
RUN yarn test
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
# Clear out the node_modules and create the zip
|
140
|
+
|
141
|
+
FROM app-base AS app-zip-creator
|
142
|
+
|
143
|
+
RUN rm -rf node_modules && \
|
144
|
+
|
145
|
+
apk add zip && \
|
146
|
+
|
147
|
+
zip -r /app.zip /app
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
# Dev-ready container - actual files will be mounted in
|
152
|
+
|
153
|
+
FROM base AS dev
|
154
|
+
|
155
|
+
CMD ["mkdocs", "serve", "-a", "0.0.0.0:8000"]
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
# Do the actual build of the mkdocs site
|
160
|
+
|
161
|
+
FROM base AS build
|
162
|
+
|
163
|
+
COPY . .
|
164
|
+
|
165
|
+
RUN mkdocs build
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
# Extract the static content from the build
|
170
|
+
|
171
|
+
# and use a nginx image to serve the content
|
172
|
+
|
173
|
+
FROM nginx:alpine
|
174
|
+
|
175
|
+
COPY --from=app-zip-creator /app.zip /usr/share/nginx/html/assets/app.zip
|
176
|
+
|
177
|
+
COPY --from=build /app/site /usr/share/nginx/html
|
178
|
+
|
179
|
+
```
|
180
|
+
|
103
181
|
### 開発環境
|
104
182
|
|
105
183
|
Windows10pro
|
3
誤字の書き直し
test
CHANGED
File without changes
|
test
CHANGED
@@ -100,8 +100,6 @@
|
|
100
100
|
|
101
101
|
```
|
102
102
|
|
103
|
-
http://bit.ly/TextReader こちらが docker-compose.yml です。
|
104
|
-
|
105
103
|
### 開発環境
|
106
104
|
|
107
105
|
Windows10pro
|
2
リンクの付けたし
test
CHANGED
File without changes
|
test
CHANGED
@@ -100,6 +100,8 @@
|
|
100
100
|
|
101
101
|
```
|
102
102
|
|
103
|
+
http://bit.ly/TextReader こちらが docker-compose.yml です。
|
104
|
+
|
103
105
|
### 開発環境
|
104
106
|
|
105
107
|
Windows10pro
|
1
誤字の書き直し
test
CHANGED
File without changes
|
test
CHANGED
@@ -78,7 +78,7 @@
|
|
78
78
|
|
79
79
|
```
|
80
80
|
|
81
|
-
といった具合に:8081番ポートが使用
|
81
|
+
といった具合に:8081番ポートが使用しているアプリが見当たりません。何が原因だと考えられるでしょうか...
|
82
82
|
|
83
83
|
### その他試したこと
|
84
84
|
|