Added entrypoint (docker)
This commit is contained in:
parent
1bf3400ba3
commit
e09b3ee92f
|
@ -1,8 +1,8 @@
|
||||||
FROM node:alpine
|
FROM node:alpine
|
||||||
RUN mkdir -p /usr/src/app/public
|
RUN mkdir -p /usr/src/app/public
|
||||||
VOLUME /usr/src/app/public
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY . /usr/src/app
|
COPY . /usr/src/app
|
||||||
RUN npm install
|
RUN npm install
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
ENTRYPOINT [ "docker-entrypoint.sh" ]
|
||||||
CMD [ "npm", "start"]
|
CMD [ "npm", "start"]
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ ! -e '/usr/src/app/external-public/index.html' ]; then
|
||||||
|
cp -R /usr/src/app/public /usr/src/app/external-public
|
||||||
|
chown -R www-data /usr/src/app/external-public
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec "$@"
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name" : "cryptalk",
|
"name" : "cryptalk",
|
||||||
"version" : "1.1.8",
|
"version" : "1.1.9",
|
||||||
"description" : "Encrypted HTML5/Node.JS instant chat",
|
"description" : "Encrypted HTML5/Node.JS instant chat",
|
||||||
"main" : "server.js",
|
"main" : "server.js",
|
||||||
"subdomain": "cryptalk",
|
"subdomain": "cryptalk",
|
||||||
|
|
Loading…
Reference in New Issue