forked from aibasel/downward
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.apptainer
More file actions
58 lines (43 loc) · 1.83 KB
/
Dockerfile.apptainer
File metadata and controls
58 lines (43 loc) · 1.83 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# This file has been modified from the FastDownward version
# The recipe below implements a Docker multi-stage build:
# <https://docs.docker.com/develop/develop-images/multistage-build/>
###############################################################################
# A first image to build the planner
###############################################################################
FROM ubuntu:20.04 AS builder
RUN apt-get update && apt-get -y install locales
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y expect
RUN apt-get update && apt-get install --no-install-recommends -y \
ca-certificates \
cmake \
g++ \
git \
libgmp3-dev \
make \
python3 \
wget \
time \
zlib1g-dev
RUN apt-get install -y python3 python3-dev python3-pip python3-venv python-is-python3
# Set up some environment variables.
ENV CXX g++
# Install pr2
WORKDIR /workspace/pr2/
# Copy the parent directory (which contains the source code) into the image.
COPY . .
RUN ./build.py -j 4 release64
RUN strip --strip-all builds/release64/bin/downward
###############################################################################
# The final image to run the planner
###############################################################################
FROM ubuntu:20.04 AS runner
RUN apt-get update && apt-get install --no-install-recommends -y \
python3 time python-is-python3 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /workspace/pr2/
# Copy the relevant files from the previous docker build into this build.
COPY --from=builder /workspace/pr2/builds ./builds
COPY --from=builder /workspace/pr2/driver ./driver
COPY --from=builder /workspace/pr2/pr2 ./pr2
COPY --from=builder /workspace/pr2/fast-downward.py ./fast-downward.py
ENTRYPOINT ["/workspace/pr2/pr2"]