Dockerfile 445 B

123456789101112131415161718192021222324252627
  1. FROM node:lts-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. ADD . /app/
  9. COPY . .
  10. RUN npm install -g pnpm
  11. RUN pnpm i
  12. ENV HOST 0.0.0.0
  13. EXPOSE 3000
  14. RUN mv packages/hoppscotch-app/.env.example packages/hoppscotch-app/.env
  15. RUN pnpm run generate
  16. CMD ["pnpm", "run", "start"]