WLenhard commited on
Commit
81d7738
·
verified ·
1 Parent(s): 415e936

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -15
Dockerfile CHANGED
@@ -1,17 +1,4 @@
1
- FROM rocker/r-ver:4.3.2
2
-
3
- # Install system dependencies
4
- RUN apt-get update && apt-get install -y \
5
- libcurl4-openssl-dev \
6
- libssl-dev \
7
- libxml2-dev \
8
- && rm -rf /var/lib/apt/lists/*
9
-
10
- # Install R packages with explicit CRAN mirror
11
- RUN R -e "options(repos = c(CRAN = 'https://cloud.r-project.org')); install.packages('plumber')"
12
-
13
- # Verify installation
14
- RUN R -e "library(plumber); cat('Plumber version:', as.character(packageVersion('plumber')), '\n')"
15
 
16
  # Set working directory
17
  WORKDIR /app
@@ -19,7 +6,7 @@ WORKDIR /app
19
  # Copy application files
20
  COPY app.R /app/
21
 
22
- # Expose port (Hugging Face uses 7860)
23
  EXPOSE 7860
24
 
25
  # Start the API
 
1
+ FROM rstudio/plumber:latest
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  # Set working directory
4
  WORKDIR /app
 
6
  # Copy application files
7
  COPY app.R /app/
8
 
9
+ # Expose port
10
  EXPOSE 7860
11
 
12
  # Start the API