AW
AAlokai
•Created by AW on 6/6/2023 in #🙋|general-help
Building on docker is missing module files
for context my dockerfile is:
Define the base image
FROM node:16.15
Define the working directory
WORKDIR /usr/src/app
Copy package.json and package-lock.json
COPY package*.json ./
Install dependencies
RUN yarn
Copy the rest of your application code
COPY . .
Build the application
RUN yarn build
Define the command to run your app using CMD which will be spun up in a lightweight node instance
CMD [ "yarn", "start" ]
Expose the port
EXPOSE 3001
2 replies