mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-21 19:19:31 -07:00
create static nginx docker build
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -1,10 +1,16 @@
|
|||||||
FROM node:24-alpine
|
FROM node:24-alpine AS node-builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# RUN npm install gulp
|
||||||
|
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
COPY package-lock.json .
|
COPY package-lock.json .
|
||||||
|
|
||||||
RUN npm ci
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
CMD ["node", "index.mjs"]
|
|
||||||
|
RUN npm install
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
FROM nginx:alpine
|
||||||
|
# COPY --from=node-builder /app/server /usr/share/nginx/html
|
||||||
|
COPY --from=node-builder /app/dist /usr/share/nginx/html
|
||||||
|
|||||||
Reference in New Issue
Block a user