-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
24 lines (18 loc) · 679 Bytes
/
dockerfile
File metadata and controls
24 lines (18 loc) · 679 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
## Use the official Miniconda3 image from Docker Hub
FROM continuumio/miniconda3
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container
COPY . /app
# Copy the requirements.txt file into the container
COPY requirements.txt .
# Install blas as a system package
RUN conda install -c conda-forge blas
# Install dependencies using pip
RUN apt-get update && apt-get install -y build-essential
RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN pip install scikit-learn
# Make port 80 available to the world outside this container
EXPOSE 80
# Run app.py when the container launches
CMD ["python", "app.py"]