2023-04-02 13:09:45 +00:00
|
|
|
FROM node:latest
|
2023-04-02 07:14:38 +00:00
|
|
|
|
|
|
|
# Create app directory
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
# 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 ./
|
|
|
|
|
|
|
|
RUN npm install
|
|
|
|
# If you are building your code for production
|
|
|
|
# RUN npm ci --omit=dev
|
|
|
|
|
|
|
|
# Bundle app source
|
|
|
|
COPY . .
|
|
|
|
|
2023-04-02 13:09:45 +00:00
|
|
|
EXPOSE ${PORT}
|
2023-04-02 07:14:38 +00:00
|
|
|
CMD [ "node", "dist/index.js" ]
|