Files
hoppscotch/Dockerfile
Lokesh Sanapalli 2884854aab fix: docker node-gyp python not found (#1987)
Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
2021-12-03 13:14:34 +05:30

30 lines
491 B
Docker

FROM node:lts-alpine
LABEL maintainer="Hoppscotch (support@hoppscotch.io)"
# Add git as the prebuild target requires it to parse version information
RUN apk add --no-cache --virtual .gyp \
python3 \
make \
g++
# Create app directory
WORKDIR /app
ADD . /app/
COPY . .
RUN npm install -g pnpm
RUN pnpm i --unsafe-perm=true
ENV HOST 0.0.0.0
EXPOSE 3000
RUN mv packages/hoppscotch-app/.env.example packages/hoppscotch-app/.env
RUN pnpm run generate
CMD ["pnpm", "run", "start"]