Convert app.js to ES modules
GitOrigin-RevId: 7819cc8c8235b93b985c1c07c7dec778c93d9134
This commit is contained in:
@@ -71,7 +71,7 @@ RUN OVERLEAF_CONFIG=/overleaf/services/web/config/settings.overrides.saas.js npm
|
||||
# the web image with only production dependencies but no webpack production build, for development
|
||||
FROM pug AS app-only
|
||||
USER node
|
||||
CMD ["node", "--expose-gc", "app.js"]
|
||||
CMD ["node", "--expose-gc", "app.mjs"]
|
||||
|
||||
|
||||
# the final production image, with webpack production build but without source maps
|
||||
@@ -80,4 +80,4 @@ ARG SENTRY_RELEASE
|
||||
ENV SENTRY_RELEASE=$SENTRY_RELEASE
|
||||
COPY --from=webpack-no-sourcemaps /overleaf/services/web/public /overleaf/services/web/public
|
||||
USER node
|
||||
CMD ["node", "--expose-gc", "app.js"]
|
||||
CMD ["node", "--expose-gc", "app.mjs"]
|
||||
|
||||
Reference in New Issue
Block a user