diff --git a/messages/Dockerfile b/messages/Dockerfile index d0631b9..1d35d27 100644 --- a/messages/Dockerfile +++ b/messages/Dockerfile @@ -14,15 +14,9 @@ FROM base AS prerelease COPY --from=install /temp/dev/node_modules node_modules COPY . . -# [optional] tests & build -ENV NODE_ENV=production -RUN bun test -RUN bun run build - # copy production dependencies and source code into final image FROM base AS release -COPY --from=install /temp/prod/node_modules node_modules -COPY --from=prerelease /usr/src/app/app.js . +COPY --from=prerelease /usr/src/app/public /usr/src/app/src . COPY --from=prerelease /usr/src/app/package.json . # run the app