fix: pass production and port environment variables for the backend functioning

This commit is contained in:
Andrew Bastin
2023-08-18 19:34:59 +05:30
parent e1cbe6e003
commit e233f36ce0

View File

@@ -15,6 +15,8 @@ FROM base_builder as backend
WORKDIR /usr/src/app/packages/hoppscotch-backend
RUN pnpm exec prisma generate
RUN pnpm run build
ENV PRODUCTION="true"
ENV PORT=3170
CMD ["pnpm", "run", "start:prod"]
EXPOSE 3170