Skip to content

Commit 0fb4014

Browse files
committed
Build all on image build
1 parent e2e6cab commit 0fb4014

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use an official Node.js runtime as a parent image
2-
FROM node:20-alpine
2+
FROM node:slim
33

44
# Set the working directory
55
WORKDIR /app
@@ -11,11 +11,8 @@ COPY . .
1111
RUN npm i
1212
RUN npm i -g http-server
1313

14-
RUN npm run plugins:build
15-
16-
RUN echo -e "npx nx reset\nnpm run client:build\nhttp-server -p 80 packages/client/dist" > ./start.sh
17-
RUN chmod +x ./start.sh
14+
RUN npm run all:build
1815

1916
EXPOSE 80
2017

21-
CMD ["sh", "./start.sh"]
18+
ENTRYPOINT ["http-server", "-p", "80", "packages/client/dist"]

0 commit comments

Comments
 (0)