diff --git a/docker/Dockerfile b/docker/Dockerfile index 8f4eb68deb..9383dd8c3d 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -35,4 +35,4 @@ ENV SERVER_PORT 80 # Export listening port EXPOSE 80 -CMD ["npm" ,"run", "start:prod"] +CMD ["cross-env", "NODE_ENV=production", "node", "index.js"] diff --git a/docker/Dockerfile.buildx b/docker/Dockerfile.buildx index 72a228efc3..d41b0e8897 100644 --- a/docker/Dockerfile.buildx +++ b/docker/Dockerfile.buildx @@ -45,4 +45,4 @@ ENV SERVER_PORT 80 # Export listening port EXPOSE 80 -CMD ["npm" ,"run", "start:prod"] +CMD ["cross-env", "NODE_ENV=production", "node", "index.js"] \ No newline at end of file