Skip to content

Commit d4768ae

Browse files
committed
build container using Py3.10
1 parent 12ec578 commit d4768ae

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

cwltool.Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9-alpine as builder
1+
FROM python:3.10-alpine as builder
22

33
RUN apk add --no-cache git gcc python3-dev libxml2-dev libxslt-dev libc-dev linux-headers
44

@@ -9,20 +9,21 @@ RUN pip install toml -rmypy_requirements.txt "$(grep ruamel requirements.txt)" \
99
"$(grep schema.salad requirements.txt)"
1010
# schema-salad is needed to be installed (this time as pure Python) for
1111
# cwltool + mypyc
12-
RUN CWLTOOL_USE_MYPYC=1 MYPYPATH=typeshed python setup.py bdist_wheel --dist-dir=/wheels
13-
RUN pip wheel -r requirements.txt galaxy-tool-util --wheel-dir=/wheels
12+
RUN CWLTOOL_USE_MYPYC=1 MYPYPATH=typeshed pip wheel --no-binary schema-salad --wheel-dir=/wheels .[deps]
1413
RUN rm /wheels/schema_salad*
15-
RUN SCHEMA_SALAD_USE_MYPYC=1 MYPYPATH=typeshed pip wheel --no-binary :all: $(grep schema.salad requirements.txt) --wheel-dir=/wheels
14+
RUN pip install black
15+
RUN SCHEMA_SALAD_USE_MYPYC=1 MYPYPATH=typeshed pip wheel --no-binary schema-salad \
16+
$(grep schema.salad requirements.txt) --wheel-dir=/wheels
1617
RUN pip install --force-reinstall --no-index --no-warn-script-location --root=/pythonroot/ /wheels/*.whl
1718
# --force-reinstall to install our new mypyc compiled schema-salad package
1819

19-
FROM python:3.9-alpine as module
20+
FROM python:3.10-alpine as module
2021
LABEL maintainer [email protected]
2122

2223
RUN apk add --no-cache docker nodejs graphviz libxml2 libxslt
2324
COPY --from=builder /pythonroot/ /
2425

25-
FROM python:3.9-alpine
26+
FROM python:3.10-alpine
2627
LABEL maintainer [email protected]
2728

2829
RUN apk add --no-cache docker nodejs graphviz libxml2 libxslt

0 commit comments

Comments
 (0)