Browse Source

add simple dockerfile

encrypt 4 years ago
parent
commit
2d19736179
1 changed files with 15 additions and 0 deletions
  1. 15 0
      Dockerfile

+ 15 - 0
Dockerfile

@@ -0,0 +1,15 @@
+FROM alpine
+
+RUN apk update && \
+    apk upgrade
+
+RUN apk add ruby build-base ruby-dev linux-headers
+
+RUN gem install --no-document sinatra json puma etc
+
+COPY server/server.rb /opt/silent-drive/server.rb
+COPY client/ /opt/silent-drive/public/
+WORKDIR /opt/silent-drive
+RUN mkdir storage
+
+ENTRYPOINT ["ruby", "server.rb", "-o", "0.0.0.0",  "-e", "production", "-p", "8080"]