File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 3
3
==============
4
4
"""
5
5
6
+ import platform
7
+
6
8
from invoke import Context , task
7
9
from invoke .exceptions import Failure
8
10
@@ -165,12 +167,12 @@ def docker_build(ctx: Context):
165
167
166
168
message_box ('Building "docker" image...' )
167
169
168
- for platform in ("arm64" , "amd64" ):
170
+ for archictecture in ("arm64" , "amd64" ):
169
171
ctx .run (
170
- f"docker build --platform=linux/{ platform } "
172
+ f"docker build --platform=linux/{ archictecture } "
171
173
f"-t { ORG } /{ CONTAINER } :latest "
172
- f"-t { ORG } /{ CONTAINER } :latest-{ platform } "
173
- f"-t { ORG } /{ CONTAINER } :v{ app .__version__ } -{ platform } ."
174
+ f"-t { ORG } /{ CONTAINER } :latest-{ archictecture } "
175
+ f"-t { ORG } /{ CONTAINER } :v{ app .__version__ } -{ archictecture } ."
174
176
)
175
177
176
178
@@ -220,7 +222,7 @@ def docker_run(ctx: Context):
220
222
"https://www.colour-science.org/assets/js/analytics.js,"
221
223
"https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.6.1/"
222
224
"iframeResizer.contentWindow.min.js "
223
- f"-p 8010:8000 { ORG } /{ CONTAINER } "
225
+ f"-p 8010:8000 { ORG } /{ CONTAINER } :latest- { platform . uname ()[ 4 ]. lower () } "
224
226
)
225
227
226
228
You can’t perform that action at this time.
0 commit comments