-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (21 loc) · 802 Bytes
/
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
FROM continuumio/miniconda3 AS build
COPY environment.yml .
RUN conda env create -f environment.yml
# Use conda-pack to create a standalone enviornment in /venv:
RUN conda install -c conda-forge conda-pack
RUN conda-pack -n crome-synthesis -o /tmp/env.tar && \
mkdir /venv && cd /venv && tar xf /tmp/env.tar && \
rm /tmp/env.tar
RUN /venv/bin/conda-unpack
FROM pmallozzi/ltltools:latest AS runtime
RUN apt-get -y update
RUN apt-get -y install git
WORKDIR /home
ENV GIT_SSL_NO_VERIFY=1
COPY . /home/crome-synthesis
RUN git clone https://github.com/pierg/crome-logic.git --branch main --single-branch
WORKDIR /home/crome-synthesis
# Copy /venv from the previous stage:
COPY --from=build /venv ./venv
ENV PYTHONPATH "/home/crome-synthesis:/home/crome-logic"
ENTRYPOINT ["./entrypoint.sh"]