Skip to content

Commit ad194ab

Browse files
committed
Fixing up dockerfile
1 parent 2d52f3d commit ad194ab

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,25 @@ RUN apt install -y \
55
libssl-dev \
66
ninja-build
77

8+
# Hack to avoid rebuilding build CPython every time the code changes
9+
WORKDIR /tmp
10+
COPY bin/install_build_python.sh .
11+
RUN ./install_build_python.sh
12+
813
# Clone current tag
914
WORKDIR /code
1015
RUN git clone \
1116
-b v${FAASM_CPYTHON_VERSION} \
1217
https://github.com/faasm/faasm-cpython
1318

14-
# Install the build machine CPython
19+
# Submodules
1520
WORKDIR /code/faasm-cpython
16-
RUN ./bin/install_build_python.sh
21+
RUN git submodule update --init
1722

1823
# Install pyfaasm natively
19-
WORKDIR /code/faasm-cpython/pyfaasm
20-
RUN pip3 install .
24+
RUN inv pyfaasm.native
2125

2226
# Build CPython to wasm
23-
WORKDIR /code/faasm-cpython
2427
RUN inv cpython
2528

2629
# Set up crossenv

0 commit comments

Comments
 (0)