Skip to content

Commit b629f36

Browse files
committed
Add dockerignore
1 parent 6617f12 commit b629f36

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.dockerignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# NOTE - as part of the docker-build task we create custom dockerignore files on the fly
2+
# to change things for specific builds. See the docker/ directory for these templates
3+
4+
# CLion
5+
cmake-build-debug
6+
cmake-build-release
7+
.idea
8+
9+
# Builds
10+
build
11+
12+
# Clang
13+
.clangd
14+
15+
# Git
16+
.git
17+
18+
# Misc project files
19+
docker
20+
docs
21+
deploy/k8s
22+
node_modules
23+
venv
24+
container
25+
26+
# Ignore all WebAssembly other than Python function, which has special status
27+
wasm
28+
!wasm/python/py_func/function.wasm
29+
30+
# Benchmarking
31+
perf
32+
perf.*

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ WORKDIR /tmp
1010
COPY bin/install_build_python.sh .
1111
RUN ./install_build_python.sh
1212

13+
# Hack to avoid reinstalling Python libs every time
14+
COPY requirements.txt .
15+
COPY pyfaasm/test_requirements.txt .
16+
RUN pip3 install -r requirements.txt
17+
RUN pip3 install -r test_requirements.txt
18+
1319
# Clone current tag
1420
WORKDIR /code
1521
RUN git clone \
@@ -20,6 +26,7 @@ RUN git clone \
2026
WORKDIR /code/faasm-cpython
2127
RUN git submodule update --init
2228

29+
2330
# Install pyfaasm natively
2431
RUN inv pyfaasm.native
2532

0 commit comments

Comments
 (0)