Klip: Kutt like it's perfect. An easy to use self-hosted URL shortener. https://uwu.ryukyu/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
347 B

  1. FROM node:12-alpine
  2. RUN apk add --update bash
  3. # Setting working directory.
  4. WORKDIR /usr/src/app
  5. # Installing dependencies
  6. COPY package*.json ./
  7. RUN npm install
  8. # Copying source files
  9. COPY . .
  10. # Give permission to run script
  11. RUN chmod +x ./wait-for-it.sh
  12. # Build files
  13. RUN npm run build
  14. EXPOSE 3000
  15. # Running the app
  16. CMD [ "npm", "start" ]