Skip to content

Commit ef8746a

Browse files
committed
Updated Dockerfile.
1 parent abca28b commit ef8746a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎Dockerfile‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM node:lts-alpine
22
MAINTAINER totalplatform "info@totaljs.com"
33

4+
RUN apk add --no-cache ffmpeg tini bash
5+
46
VOLUME /www
57
WORKDIR /www
68
RUN mkdir -p /www/bundles
@@ -14,4 +16,5 @@ COPY /--bundles--/bookmarks.bundle ./bundles/
1416
RUN npm install
1517
EXPOSE 8000
1618

17-
CMD [ "npm", "start" ]
19+
ENTRYPOINT ["/usr/bin/tini", "--"]
20+
CMD [ "/bin/bash", "-c", "mkdir -p logs; npm i; npm start 2>&1 | tee logs/debug.log" ]

0 commit comments

Comments
 (0)