Skip to content
Snippets Groups Projects
Commit 8f9862a8 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

move shiny run --reload into a docker-compose

update base image as project has been renamed
parent 8b607313
Branches
No related tags found
No related merge requests found
Pipeline #106776 passed
FROM registry-gitlab.pasteur.fr/hub/rshiny-k8s/python:3.9-slim-bullseye
FROM registry-gitlab.pasteur.fr/hub/shiny-k8s/python:3.9-slim-bullseye
# Add workdir information
WORKDIR /srv/shiny-server/
# install additional dependencies, comment the block if you don't have one
RUN apt-get update \
......@@ -20,11 +23,3 @@ COPY ./example_proj /srv/shiny-server
# grant shiny to use www folder
RUN chown shiny:shiny /srv/shiny-server/www
# Add workdir information
WORKDIR /srv/shiny-server/
# allow autoreload on development step
# When deployed must be override in prod to `shiny-server`,
# which is done by the helm chart starting 0.4.0
CMD ["shiny","run","--host","0.0.0.0","--port","3838","--reload","./app.py"]
version: '3.4'
services:
shiny-server:
build:
context: .
command: [
'shiny',
'run',
'--host',
'0.0.0.0',
'--port',
'3838',
'--reload',
'./app.py'
]
user: 'shiny:shiny'
volumes:
- ./example_proj:/srv/shiny-server/
- ./logs:/var/log/shiny-server
ports:
- '3838:3838'
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment