Adding JsonMessages to Docker image

This commit is contained in:
David Négrier 2021-12-16 16:09:59 +01:00
parent b2bcfde5b1
commit 88a6e80a8f
2 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ FROM thecodingmachine/nodejs:14-apache
COPY --chown=docker:docker front .
COPY --from=builder --chown=docker:docker /usr/src/generated /var/www/html/src/Messages/generated
COPY --from=builder --chown=docker:docker /usr/src/JsonMessages /var/www/html/src/Messages/JsonMessages
# Removing the iframe.html file from the final image as this adds a XSS attack.
# iframe.html is only in dev mode to circumvent a limitation

View File

@ -11,6 +11,7 @@ COPY pusher/yarn.lock pusher/package.json ./
RUN yarn install
COPY pusher .
COPY --from=builder /usr/src/generated src/Messages/generated
COPY --from=builder /usr/src/JsonMessages /var/www/html/src/Messages/JsonMessages
ENV NODE_ENV=production
RUN yarn run tsc