mirror of
https://github.com/hoppscotch/hoppscotch
synced 2024-11-23 15:48:33 +00:00
27 lines
382 B
Docker
27 lines
382 B
Docker
FROM node:lts
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
# # Install pnpm
|
|
RUN npm i -g pnpm
|
|
|
|
COPY pnpm-lock.yaml .
|
|
RUN pnpm fetch
|
|
|
|
# # PNPM package install
|
|
COPY ./packages/hoppscotch-backend .
|
|
RUN pnpm i --filter hoppscotch-backend
|
|
|
|
# Prisma bits
|
|
RUN pnpm exec prisma generate
|
|
|
|
|
|
EXPOSE 3170
|
|
EXPOSE 9229
|
|
|
|
ENV APP_PORT=${PORT}
|
|
ENV DB_URL=${DATABASE_URL}
|
|
ENV PRODUCTION=true
|
|
|
|
CMD ["pnpm", "run", "start"]
|