Skip to content

Commit

Permalink
add nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPorshnev committed Dec 20, 2024
1 parent 7b1ea18 commit 87811ec
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions frontent/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:20 AS build

WORKDIR /usr/src/app

COPY package*.json ./
RUN npm install

COPY . .
RUN npm run build --prod

FROM nginx:1.27

COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /usr/src/app/dist/frontent /usr/share/nginx/html

CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 87811ec

Please sign in to comment.