[devdocsgjs/fix] Fix permissions issues



commit 4dd2e5497ef0a98d453c3b7da5507cee2059137a
Author: Meg Ford <megford gnome org>
Date:   Sat Dec 28 23:55:04 2019 -0600

    Fix permissions issues

 Dockerfile         | 5 ++++-
 docker-compose.yml | 9 +++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/Dockerfile b/Dockerfile
index ec36ad69..b87b537f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -93,5 +93,8 @@ RUN apk --update add nodejs build-base libstdc++ gzip git zlib-dev && \
     rm -rf /var/cache/apk/* /tmp ~/.gem /root/.bundle/cache \
     /usr/local/bundle/cache /usr/lib/node_modules
 
+RUN adduser -D -h /devdocs -s /bin/bash -G root -u 1000 rbuser
+RUN chmod -R 775 /devdocs
+RUN chown -R rbuser:root /devdocs
 EXPOSE 9292
-CMD rackup -o 0.0.0.0
+CMD bundle exec rackup -o 0.0.0.0
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 00000000..2f2aa548
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,9 @@
+version: '3'
+services:
+  web:
+    build: .
+    command: bundle exec rackup -o 0.0.0.0
+    volumes:
+      - .:/myapp
+    ports:
+      - "9292:9292"
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]