Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +12 -1
Dockerfile
CHANGED
|
@@ -75,5 +75,16 @@ RUN chown -R shiny:shiny /srv/shiny-server \
|
|
| 75 |
&& mkdir -p /var/log/shiny-server \
|
| 76 |
&& chown -R shiny:shiny /var/log/shiny-server
|
| 77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
EXPOSE 7860
|
| 79 |
-
|
|
|
|
|
|
|
|
|
| 75 |
&& mkdir -p /var/log/shiny-server \
|
| 76 |
&& chown -R shiny:shiny /var/log/shiny-server
|
| 77 |
|
| 78 |
+
RUN R -e "remotes::install_github('bmansfeld/QTLseqr', upgrade='never', dependencies=FALSE)"
|
| 79 |
+
|
| 80 |
+
# Create www directory and health file directly
|
| 81 |
+
RUN mkdir -p /code/www && echo "OK" > /code/www/health
|
| 82 |
+
|
| 83 |
+
# Copy app code
|
| 84 |
+
COPY app.R /code/
|
| 85 |
+
|
| 86 |
+
# Expose the port Shiny will run on
|
| 87 |
EXPOSE 7860
|
| 88 |
+
|
| 89 |
+
# Run the app with corrected host address
|
| 90 |
+
CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7860)"]
|