Minimizing Dockerfile. 1.1.13
This commit is contained in:
parent
799b6c5b84
commit
ddd1005141
|
@ -1,8 +1,7 @@
|
||||||
FROM node:alpine
|
FROM node:alpine
|
||||||
RUN mkdir -p /usr/src/app/public
|
|
||||||
WORKDIR /usr/src/app
|
|
||||||
COPY . /usr/src/app
|
COPY . /usr/src/app
|
||||||
RUN npm install
|
RUN npm install && \
|
||||||
|
npm cache clean
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
RUN chmod +x /usr/src/app/docker-entrypoint.sh
|
RUN chmod +x /usr/src/app/docker-entrypoint.sh
|
||||||
ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh", "npm", "start"]
|
ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh", "npm", "start"]
|
|
@ -3,5 +3,6 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cp -R /usr/src/app/public/* /usr/src/app/external-public/
|
cp -R /usr/src/app/public/* /usr/src/app/external-public/
|
||||||
|
cd /usr/src/app
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name" : "cryptalk",
|
"name" : "cryptalk",
|
||||||
"version" : "1.1.12",
|
"version" : "1.1.13",
|
||||||
"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