mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-15 16:22:44 +00:00
Update Dockerfile
deploy static file into nginx image
This commit is contained in:
parent
ec2a1999ee
commit
7356d6628f
1 changed files with 7 additions and 3 deletions
10
Dockerfile
10
Dockerfile
|
@ -1,4 +1,4 @@
|
|||
FROM node:22
|
||||
FROM node:22 AS build-yarn
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
@ -8,6 +8,10 @@ RUN yarn install
|
|||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 5173
|
||||
RUN yarn build
|
||||
|
||||
CMD ["yarn", "dev", "--host", "0.0.0.0"]
|
||||
FROM nginx:latest AS runtime
|
||||
|
||||
COPY dist/ /usr/share/nginx/html/
|
||||
|
||||
EXPOSE 80
|
||||
|
|
Loading…
Reference in a new issue