-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile
30 lines (22 loc) · 1 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
# Docker file for the census income prediction
# Author: Philson Chan
# December 09, 2021
# Use anaconda as the base image
FROM continuumio/anaconda3
# Install System Pre-requisites
RUN apt update && \
apt install -y software-properties-common build-essential libcurl4-openssl-dev libssl-dev libxml2-dev
# Install R (Version 4.1.2)
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-key '95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7'
RUN add-apt-repository "deb http://cloud.r-project.org/bin/linux/debian bullseye-cran40/" && \
apt update && \
apt install -y -t bullseye-cran40 r-base r-base-dev
# Install required packages in R
RUN Rscript -e "install.packages('tidyverse');"
# Download the conda environment file and create conda environment
#RUN cd home && \
# wget https://raw.githubusercontent.com/UBC-MDS/census-income-prediction/main/census-income.yaml && \
COPY census-income.yaml ./home
RUN conda env create -f /home/census-income.yaml
# Garbage collection
RUN rm /home/census-income.yaml