chore: Dockerfile update
node:10-14-alpine image is used (because jessie is oudated and can not install packages adding package-lock.json to make sure the same dependencies' versions are used added an option to pass redisHost, mongoHost, mysqlHost to use in Kubernetes cluster
This commit is contained in:
parent
ae461383bd
commit
8a879c91bd
2 changed files with 31 additions and 9 deletions
|
@ -1,12 +1,16 @@
|
|||
FROM node:10.14-jessie
|
||||
FROM node:10.14-alpine
|
||||
|
||||
RUN apt-get update && apt-get install -y pwgen netcat
|
||||
RUN apk add --update pwgen netcat-openbsd python make gcc git g++ bash
|
||||
|
||||
# First install dependencies
|
||||
COPY server/package.json /app/server/package.json
|
||||
COPY server/package-lock.json /app/server/package-lock.json
|
||||
COPY client/package.json /app/client/package.json
|
||||
COPY client/package-lock.json /app/client/package-lock.json
|
||||
COPY shared/package.json /app/shared/package.json
|
||||
COPY shared/package-lock.json /app/shared/package-lock.json
|
||||
COPY zone-mta/package.json /app/zone-mta/package.json
|
||||
COPY zone-mta/package-lock.json /app/zone-mta/package-lock.json
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue