diff --git a/Dockerfile b/Dockerfile index 4e82cf447e..ddd25b9745 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,16 +25,14 @@ ENV TZ=UTC WORKDIR /unleash -COPY --from=builder /unleash/build /unleash/build +COPY --from=builder /unleash/build /unleash/ COPY --from=builder /unleash/node_modules /unleash/node_modules -COPY ./docker/index.js /unleash/index.js - RUN rm -rf /usr/local/lib/node_modules/npm/ EXPOSE 4242 USER node -CMD ["node", "index.js"] +CMD ["node", "dist/server.js"] diff --git a/docker/index.js b/docker/index.js deleted file mode 100644 index 2295de89d0..0000000000 --- a/docker/index.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -const unleash = require('./build'); - -let options = {}; - -unleash.start(options);