Create Dockerfile
Browse files- Dockerfile +15 -0
Dockerfile
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM alpine
|
| 2 |
+
|
| 3 |
+
WORKDIR /opt/app
|
| 4 |
+
|
| 5 |
+
RUN apk add --no-cache nodejs
|
| 6 |
+
|
| 7 |
+
ADD https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store.bundle.js /opt/app/sub-store.bundle.js
|
| 8 |
+
|
| 9 |
+
ADD https://github.com/sub-store-org/Sub-Store-Front-End/releases/latest/download/dist.zip /opt/app/dist.zip
|
| 10 |
+
|
| 11 |
+
RUN unzip dist.zip; mv dist frontend; rm dist.zip
|
| 12 |
+
|
| 13 |
+
RUN chmod 777 -R /opt/app
|
| 14 |
+
|
| 15 |
+
CMD mkdir -p /opt/app/data; cd /opt/app/data; SUB_STORE_BACKEND_API_HOST=127.0.0.1 SUB_STORE_FRONTEND_HOST=0.0.0.0 SUB_STORE_FRONTEND_PORT=7860 SUB_STORE_FRONTEND_PATH=/opt/app/frontend SUB_STORE_DATA_BASE_PATH=/opt/app/data node /opt/app/sub-store.bundle.js
|