Updated packages
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM node:16
|
||||
|
||||
# Create app directory
|
||||
WORKDIR /app
|
||||
ENV PORT 3001
|
||||
EXPOSE 3001
|
||||
|
||||
# Install app dependencies
|
||||
# A wildcard is used to ensure both package.json AND package-lock.json are copied
|
||||
# where available (npm@5+)
|
||||
COPY package*.json ./
|
||||
ADD node_addons ./node_addons
|
||||
|
||||
RUN yarn install
|
||||
|
||||
# Bundle app source
|
||||
COPY . .
|
||||
|
||||
|
||||
CMD [ "yarn", "start" ]
|
||||
Reference in New Issue
Block a user