diff --git a/Dockerfile b/Dockerfile index 9d32b5e..6098f22 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Use an official Node.js runtime as a parent image -FROM node:20-alpine +FROM node:slim # Set the working directory WORKDIR /app @@ -11,11 +11,8 @@ COPY . . RUN npm i RUN npm i -g http-server -RUN npm run plugins:build - -RUN echo -e "npx nx reset\nnpm run client:build\nhttp-server -p 80 packages/client/dist" > ./start.sh -RUN chmod +x ./start.sh +RUN npm run all:build EXPOSE 80 -CMD ["sh", "./start.sh"] \ No newline at end of file +ENTRYPOINT ["http-server", "-p", "80", "packages/client/dist"] \ No newline at end of file