update dockerfile entrypoint to use esm

Does not work using #! in bin/server without this.
This commit is contained in:
Roman Shtylman
2018-04-01 20:24:55 -07:00
parent 86dce49dd1
commit 423327d0ac

View File

@@ -10,4 +10,4 @@ RUN yarn install --production && yarn cache clean
COPY . /app COPY . /app
ENV NODE_ENV production ENV NODE_ENV production
ENTRYPOINT ["bin/server"] ENTRYPOINT ["node", "-r", "esm", "./bin/server"]