Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
danielzlatanov committed Sep 23, 2024
1 parent 38ad0e7 commit b4d30ec
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,21 @@ FROM node:alpine AS build

WORKDIR /usr/src/app

RUN npm install -g @angular/cli

COPY package*.json ./
RUN npm install

COPY . .

RUN ng build --configuration production
RUN npm run build

FROM node:alpine

WORKDIR /usr/src/app

RUN npm install -g http-server
RUN npm install http-server

COPY --from=build /usr/src/app/dist/btc-insights /usr/src/app/dist

EXPOSE 4200

CMD ["http-server", "dist", "-p", "4200"]
CMD ["npx", "http-server", "dist", "-p", "4200"]

0 comments on commit b4d30ec

Please sign in to comment.