-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile
37 lines (23 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM ubuntu:22.04
# RUN apt update > /dev/null && apt install -y apt-utils && apt upgrade -y > /dev/null
COPY deb /
RUN export DEBIAN_FRONTEND=noninteractive && \
apt update > /dev/null && \
apt upgrade -y > /dev/null && \
apt install -y apt-utils > /dev/null && \
apt install -y python3-pip > /dev/null && \
(apt install -y ./chapel-2.3.0-1.ubuntu22.arm64.deb > /dev/null) || (apt install -y ./chapel-2.3.0-1.ubuntu22.amd64.deb > /dev/null)
RUN pip3 install numpy > /dev/null
RUN pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu > /dev/null
COPY lib /lib
COPY examples /examples
COPY test /test
# Run tests
RUN cd test/correspondence && python3 correspondence.py
RUN cd test/correspondence && python3 correspondence.py --print-compiler-errors
# Build instructions
# force (last resort): docker system prune --all --force
# docker builder prune --all
# docker build --no-cache -t chapel-deb .
# docker build -t chapel-deb .
# docker container run -it chapel-deb bash