-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (36 loc) · 1.2 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
38
39
40
41
42
43
44
45
46
47
48
49
# Use an official Ubuntu as a parent image
FROM ubuntu:20.04
# Set the maintainer label
LABEL maintainer="[email protected]"
# Set noninteractive mode for apt-get
ENV DEBIAN_FRONTEND=noninteractive
# Update and install system-level dependencies
RUN apt-get update && apt-get install -y \
wget \
build-essential \
git \
curl \
ca-certificates && \
rm -rf /var/lib/apt/lists/*
# Download and install Miniconda for ARM64
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh
# Add Conda to PATH
ENV PATH="/opt/conda/bin:${PATH}"
# Assuming the Dockerfile is at the same level as the dpok folder
# Copy the environment file from the dpok folder
COPY dpok/environment.yaml /tmp/environment.yml
# Create the environment
RUN conda env create -f /tmp/environment.yml
# Activate the environment
ENV PATH /opt/conda/envs/dpok/bin:$PATH
ENV CONDA_DEFAULT_ENV dpok
# Set the working directory
WORKDIR /usr/src/app
# Copy the local code to the container
COPY . .
# Expose ports (if necessary)
# EXPOSE 5000
# Command to run when starting the container
CMD ["/bin/bash"]