Skip to content
Snippets Groups Projects
Commit ec55b2eb authored by Dominik Brilhaus's avatar Dominik Brilhaus
Browse files

try fix docker for shiny

parent 668b9b5c
No related branches found
No related tags found
1 merge request!18Docker dependencies
# Use an official R base image
FROM rocker/shiny:4.4
# Install R packages
RUN R -q -e 'install.packages("ggplot2")'
EXPOSE 3838
# Set the working directory to /app
WORKDIR /app
# Default command to run when the container starts
CMD ["R"]
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
# Load libraries # Load libraries
library(shiny) library(shiny)
library(RColorBrewer)
library(ggplot2) library(ggplot2)
# CLI arguments # CLI arguments
...@@ -65,4 +64,5 @@ server <- function(input, output, session) { ...@@ -65,4 +64,5 @@ server <- function(input, output, session) {
# Launch app # Launch app
shinyApp(ui, server) sa <- shinyApp(ui, server)
runApp(sa, port = 3838)
...@@ -4,8 +4,9 @@ cwlVersion: v1.2 ...@@ -4,8 +4,9 @@ cwlVersion: v1.2
class: CommandLineTool class: CommandLineTool
# hints: # hints:
# DockerRequirement: # DockerRequirement:
# dockerPull: # dockerImageId: "shiny"
# dockerFile: {$include: "Dockerfile"}
requirements: requirements:
- class: InitialWorkDirRequirement - class: InitialWorkDirRequirement
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment