forked from orangetin/OpenChatKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 689 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 689 Bytes
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
# Base image
FROM ubuntu:20.04
VOLUME /app
# Set working directory
WORKDIR /app
# Update and install required packages
RUN apt-get update && \
apt-get install git-lfs wget gcc -y && \
rm -rf /var/lib/apt/lists/*
# Download and install Miniconda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
bash Miniconda3-latest-Linux-x86_64.sh -b -p /app/conda && \
rm Miniconda3-latest-Linux-x86_64.sh
ENV PATH=/app/conda/bin:${PATH}
# Create OpenChatKit environment
COPY environment.yml .
RUN conda install mamba -n base -c conda-forge
RUN mamba env create -f environment.yml
# Copy OpenChatKit code
COPY . .
ENTRYPOINT ["/app/setup.sh"]