Spaces:
Sleeping
Sleeping
aephidayatuloh commited on
Commit ·
35044e1
1
Parent(s): a37dba3
fix: adjust Dockerfile layers for correct renv execution
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -38,12 +38,12 @@ WORKDIR /app
|
|
| 38 |
# 'ggplot2' \
|
| 39 |
# ), repos='https://cloud.r-project.org/')"
|
| 40 |
|
| 41 |
-
COPY renv.lock ./
|
| 42 |
-
RUN R -e "install.packages('renv'); renv::restore()"
|
| 43 |
-
|
| 44 |
# 5. Salin semua file dari proyek lokal Anda ke dalam kontainer
|
| 45 |
COPY . .
|
| 46 |
|
|
|
|
|
|
|
|
|
|
| 47 |
# 6. Atur hak akses agar kontainer bisa menulis file (misal saat mengunduh model)
|
| 48 |
RUN chmod -R 777 /app
|
| 49 |
|
|
|
|
| 38 |
# 'ggplot2' \
|
| 39 |
# ), repos='https://cloud.r-project.org/')"
|
| 40 |
|
|
|
|
|
|
|
|
|
|
| 41 |
# 5. Salin semua file dari proyek lokal Anda ke dalam kontainer
|
| 42 |
COPY . .
|
| 43 |
|
| 44 |
+
COPY renv.lock ./
|
| 45 |
+
RUN R -e "install.packages('renv'); renv::restore()"
|
| 46 |
+
|
| 47 |
# 6. Atur hak akses agar kontainer bisa menulis file (misal saat mengunduh model)
|
| 48 |
RUN chmod -R 777 /app
|
| 49 |
|