Spaces:
Runtime error
Runtime error
Jakub Nowicki
commited on
Commit
•
daa0454
1
Parent(s):
5a88ab7
Minor Dockerfile update.
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -6,14 +6,14 @@ RUN chmod 777 /.cache
|
|
6 |
|
7 |
WORKDIR /code
|
8 |
|
9 |
-
# Install
|
10 |
RUN install2.r --error \
|
11 |
renv
|
12 |
|
|
|
13 |
COPY . .
|
14 |
|
|
|
15 |
RUN Rscript -e 'options(renv.config.cache.enabled = FALSE); renv::restore(prompt = FALSE)'
|
16 |
|
17 |
-
EXPOSE 7860
|
18 |
-
|
19 |
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
|
|
|
6 |
|
7 |
WORKDIR /code
|
8 |
|
9 |
+
# Install renv
|
10 |
RUN install2.r --error \
|
11 |
renv
|
12 |
|
13 |
+
# Copy application code
|
14 |
COPY . .
|
15 |
|
16 |
+
# Install dependencies
|
17 |
RUN Rscript -e 'options(renv.config.cache.enabled = FALSE); renv::restore(prompt = FALSE)'
|
18 |
|
|
|
|
|
19 |
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
|