Fix 'use omit=dev' warning. copy package-lock.json if it exists (#632)
* Fix 'use omit=dev' warning. copy package-lock * add package-lock to project * change to ci. light version won't copy over package-lock, so keep that npm install.
This commit is contained in:
parent
212af8145c
commit
1243405807
3 changed files with 9134 additions and 3 deletions
|
@ -30,9 +30,9 @@ RUN set -ex; \
|
|||
rm -rf /var/lib/apt/lists/*;
|
||||
|
||||
RUN mkdir -p /usr/src/app
|
||||
COPY package.json /usr/src/app
|
||||
COPY package* /usr/src/app/
|
||||
|
||||
RUN cd /usr/src/app && npm install --production
|
||||
RUN cd /usr/src/app && npm ci --omit=dev
|
||||
|
||||
FROM ubuntu:focal AS final
|
||||
|
||||
|
|
|
@ -27,6 +27,6 @@ ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh"]
|
|||
|
||||
RUN mkdir -p /usr/src/app
|
||||
COPY / /usr/src/app
|
||||
RUN cd /usr/src/app && npm install --production
|
||||
RUN cd /usr/src/app && npm install --omit=dev
|
||||
RUN ["chmod", "+x", "/usr/src/app/docker-entrypoint.sh"]
|
||||
USER node:node
|
||||
|
|
9131
package-lock.json
generated
Normal file
9131
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue