This commit is contained in:
parent
4e7687d5b7
commit
9f6c3d2c21
@ -6,10 +6,10 @@ WORKDIR /usr/src/app
|
|||||||
# A wildcard is used to ensure both package.json AND package-lock.json are copied
|
# A wildcard is used to ensure both package.json AND package-lock.json are copied
|
||||||
# where available (npm@5+)
|
# where available (npm@5+)
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN yarn
|
||||||
# If you are building your code for production
|
# If you are building your code for production
|
||||||
# RUN npm ci --only=production
|
# RUN npm ci --only=production
|
||||||
# Bundle app source
|
# Bundle app source
|
||||||
COPY . .
|
COPY . .
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD [ "node", "server.js" ]
|
CMD [ "yarn", "demon" ]
|
Loading…
x
Reference in New Issue
Block a user