Skip to content

Commit

Permalink
ref: single dockefile style
Browse files Browse the repository at this point in the history
  • Loading branch information
askonev committed Jul 24, 2024
1 parent 8fa237a commit f2ff90a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ FROM node:16.17.1-buster
RUN mkdir /palladium-view
COPY . /palladium-view
WORKDIR /palladium-view

RUN npm install
RUN npm run build

CMD bash wait_for_volume.sh
CMD ["bash", "wait_for_volume.sh"]
6 changes: 5 additions & 1 deletion docker-build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FROM node:16.17.1-buster

RUN mkdir /palladium-view
COPY . /palladium-view
WORKDIR /palladium-view

RUN npm install -g @angular/cli --unsafe-perm && npm install
CMD ng build --prod --aot=false

ENTRYPOINT ["ng"]
CMD ["build", "--prod", "--aot=false"]
5 changes: 3 additions & 2 deletions unit-test-runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir /palladium-view
WORKDIR /palladium-view
COPY . /palladium-view
WORKDIR /palladium-view

RUN npm install

CMD ["npm", "run", "ng", "test"]
ENTRYPOINT ["ng"]
CMD ["test"]

0 comments on commit f2ff90a

Please sign in to comment.