VeenaLim commited on
Commit
985df33
·
verified ·
1 Parent(s): c1f0654

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -31
Dockerfile DELETED
@@ -1,31 +0,0 @@
1
- # Use rocker/r-ver as base image with R pre-installed
2
- FROM rocker/r-ver:4.3.2
3
-
4
- # Install system dependencies required for R packages
5
- RUN apt-get update && apt-get install -y --no-install-recommends \
6
- libcurl4-openssl-dev \
7
- libssl-dev \
8
- libxml2-dev \
9
- libgit2-dev \
10
- && rm -rf /var/lib/apt/lists/*
11
-
12
- # Install all required R packages in one step
13
- RUN R -e "install.packages(c('plumber', 'readr', 'assertthat', 'jsonlite', 'remotes'), repos='https://cloud.r-project.org/')"
14
-
15
- # Install dampack from GitHub (more reliable than CRAN)
16
- RUN R -e "remotes::install_github('DARTH-git/dampack', upgrade='never')"
17
-
18
- # Create app directory structure
19
- WORKDIR /app
20
- RUN mkdir -p /app/api /app/model
21
-
22
- # Copy all files (use simpler paths)
23
- COPY plumber_hf.R /app/api/plumber.R
24
- COPY darth_funcs.R /app/model/darth_funcs.R
25
- COPY parameter_distributions.csv /app/parameter_distributions.csv
26
-
27
- # Expose port 7860 (Hugging Face Spaces default)
28
- EXPOSE 7860
29
-
30
- # Run the Plumber API
31
- CMD ["R", "-e", "pr <- plumber::plumb('/app/api/plumber.R'); pr$run(host='0.0.0.0', port=7860)"]