mirror of
https://github.com/silenty4ng/k5web
synced 2025-04-23 04:55:53 +00:00
Update Dockerfile
deploy static file into nginx image
This commit is contained in:
parent
78898a76bf
commit
cf0e455007
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
|
WORKDIR /app
|
||||||
|
|
||||||
|
@ -8,6 +8,10 @@ RUN yarn install
|
||||||
|
|
||||||
COPY . .
|
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…
Add table
Add a link
Reference in a new issue