| 123456789101112131415161718192021222324 |
- FROM node:12-alpine
- RUN apk add --update bash
- # Setting working directory.
- WORKDIR /usr/src/app
- # Installing dependencies
- COPY package*.json ./
- RUN npm install
- # Copying source files
- COPY . .
- # Give permission to run script
- RUN chmod +x ./wait-for-it.sh
- # Build files
- RUN npm run build
- EXPOSE 3000
- # Running the app
- CMD [ "npm", "start" ]
|