RUN npm i
RUN npm i @vue/cli -g
RUN npm i && npm i @vue/cli -g
FROM node:16.5-alpine
ARG APP_DIR=/app
ARG LOCAL_APP_PATH=cabinet
WORKDIR ${APP_DIR}
RUN echo "*** DEBUG pwd"
RUN pwd
COPY /package*.json ./
RUN npm i && npm i @vue/cli -g
RUN echo "*** DEBUG ls"
RUN ls -alah
ENV PATH=${APP_DIR}/node_modules/.bin:$PATH
RUN echo "*** DEBUG ${PATH}"
EXPOSE 8080
CMD npm run serve
~$ curl -iL http://185.188.182.115/
HTTP/1.1 404 Not Found
X-Powered-By: Express
Content-Type: text/html; charset=utf-8
Content-Length: 18
ETag: W/"12-TE2lCrOzCNZI3c3Lzv6W3RJ6T3g"
Date: Mon, 09 Aug 2021 18:09:59 GMT
Connection: keep-alive
Keep-Alive: timeout=5
<h1>Oook booy</h1>
~$ curl -iL --insecure https://185.188.182.115/
HTTP/1.1 404 Not Found
X-Powered-By: Express
Content-Type: text/html; charset=utf-8
Content-Length: 18
ETag: W/"12-TE2lCrOzCNZI3c3Lzv6W3RJ6T3g"
Date: Mon, 09 Aug 2021 18:11:17 GMT
Connection: keep-alive
Keep-Alive: timeout=5
<h1>Oook booy</h1>