Minimizing Dockerfile

This commit is contained in:
Hexagon 2017-01-17 22:53:57 +01:00
parent ddd1005141
commit 4f0016e150
2 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,6 @@
FROM node:alpine FROM node:alpine
COPY . /usr/src/app COPY . /usr/src/app
WORKDIR /usr/src/app
RUN npm install && \ RUN npm install && \
npm cache clean npm cache clean
EXPOSE 8080 EXPOSE 8080

View File

@ -3,6 +3,5 @@
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 "$@"