diff --git a/Dockerfile b/Dockerfile index 5e3f20c..171775c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,6 +43,9 @@ COPY --chown=node:node . . # Copy prisma (needed for migrations) COPY --chown=node:node ./prisma prisma +# Copy policies +COPY --chown=node:node ./opa opa + # Run the build command which creates the production bundle RUN npm run build @@ -68,8 +71,8 @@ COPY --chown=node:node package*.json ./ # Copy the bundled code from the build stage to the production image COPY --chown=node:node --from=build /usr/src/app/node_modules ./node_modules COPY --chown=node:node --from=build /usr/src/app/prisma ./prisma +COPY --chown=node:node --from=build /usr/src/app/opa ./opa COPY --chown=node:node --from=build /usr/src/app/dist ./dist -COPY --chown=node:node ./opa opa # Start the server using the production build CMD [ "node", "dist/main.js" ]