Skip to content

Commit

Permalink
update dockerfile for nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
danielzlatanov committed Sep 23, 2024
1 parent 1795165 commit a710f3c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ COPY . .

RUN npm run build

FROM node:alpine
FROM nginx:alpine

WORKDIR /usr/src/app
RUN rm /etc/nginx/conf.d/default.conf

RUN npm install http-server
COPY nginx.conf /etc/nginx/conf.d

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

EXPOSE 4200

CMD ["npx", "http-server", "dist", "-p", "4200"]
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit a710f3c

Please sign in to comment.