Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyfilyanin authored Sep 19, 2023
1 parent ebcaa6d commit 293c8dd
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
FROM node:18-alpine
FROM node:buster as BUILDER

WORKDIR /opt
WORKDIR /app
COPY . .
RUN apt update && apt install -y git
RUN yarn install && yarn build

COPY . /opt
# --------------------------------------------------
FROM nginx

COPY .eslintrc.json /opt
COPY --from=BUILDER /app/build /usr/share/nginx/html

RUN apk update && apk add --no-cache git

RUN yarn global add eslint --dev

RUN yarn install

CMD ["yarn", "vite", "--host", "0.0.0.0"]
EXPOSE 80

0 comments on commit 293c8dd

Please sign in to comment.