Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile to package app #16

Open
project-delphi opened this issue Oct 17, 2024 · 2 comments
Open

Dockerfile to package app #16

project-delphi opened this issue Oct 17, 2024 · 2 comments

Comments

@project-delphi
Copy link
Collaborator

Once environments are shown to run and work, we'll get an ubuntu based dockerfile.

This will connect the directories and then run the setup script and launch commands.

@project-delphi
Copy link
Collaborator Author

@DavidAlberto , low priority.

@project-delphi
Copy link
Collaborator Author

something like this

# Base image
FROM ubuntu:22.04

# Set environment variables to avoid interactive prompts
ENV DEBIAN_FRONTEND=noninteractive

# Install dependencies
RUN apt-get update && apt-get install -y \
    curl \
    sudo \
    git \
    quarto \
    r-base \
    r-base-dev \
    libcurl4-openssl-dev \
    libssl-dev \
    libxml2-dev \
    libgit2-dev \
    pandoc \
    gdebi-core \
    && apt-get clean

# Install R Shiny server
RUN R -e "install.packages('shiny', repos='http://cran.rstudio.com/')"

# Clone the repo
WORKDIR /app
RUN git clone https://github.com/DavidAlberto/dashboard-rhizosphere.git

# Run the setup script
WORKDIR /app/dashboard-rhizosphere
RUN chmod +x setup.sh && ./setup.sh

# Expose the port for the dashboard
EXPOSE 3838

# Run the Quarto and Shiny dashboards
CMD quarto preview && R -e "shiny::runApp('app', host='0.0.0.0', port=3838)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant