Untitled
unknown
plain_text
a year ago
591 B
6
Indexable
# Use a specific version of node on alpine FROM node:18 # Set non-interactive mode ARG DEBIAN_FRONTEND=noninteractive # Create app directory WORKDIR /usr/src/app # Install app dependencies by copying # package.json and package-lock.json COPY . . # Install dependencies RUN npm install # Set an environment variable to automatically answer "yes" to prompts ENV ACCEPT_EULA=Y # # RUN npm run dev # RUN npm run build # Your app binds to port 8080 by default, so use the EXPOSE instruction to have it mapped by the docker daemon EXPOSE 3012 # Start your app CMD [ "npm", "run", "dev" ]
Editor is loading...
Leave a Comment