Minimizing Dockerfile
This commit is contained in:
parent
ddd1005141
commit
4f0016e150
|
@ -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
|
||||||
|
|
|
@ -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 "$@"
|
||||||
|
|
Loading…
Reference in New Issue