Dockerfile 373 B

12345678910111213141516171819202122232425
  1. FROM node:12-alpine
  2. LABEL maintainer="Hoppscotch (support@hoppscotch.io)"
  3. # Add git as the prebuild target requires it to parse version information
  4. RUN apk add --update --no-cache \
  5. git
  6. # Create app directory
  7. WORKDIR /app
  8. COPY package*.json ./
  9. RUN npm install
  10. ADD . /app/
  11. COPY . .
  12. ENV HOST 0.0.0.0
  13. EXPOSE 3000
  14. RUN mv .env.example .env
  15. CMD ["npm", "run", "dev"]