Dockerfile 491 B

1234567891011121314151617181920212223242526272829
  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 --no-cache --virtual .gyp \
  5. python3 \
  6. make \
  7. g++
  8. # Create app directory
  9. WORKDIR /app
  10. ADD . /app/
  11. COPY . .
  12. RUN npm install -g pnpm
  13. RUN mv packages/hoppscotch-app/.env.example packages/hoppscotch-app/.env
  14. RUN pnpm i --unsafe-perm=true
  15. ENV HOST 0.0.0.0
  16. EXPOSE 3000
  17. RUN pnpm run generate
  18. CMD ["pnpm", "run", "start"]