16 lines
294 B
Docker
16 lines
294 B
Docker
FROM node:20.11.0 as build
|
|
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
COPY . .
|
|
RUN npm run build:qa
|
|
|
|
FROM nginx:alpine
|
|
COPY nginx_qa.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=build /app/build /usr/share/nginx/admintool
|
|
|
|
# port 8080
|
|
EXPOSE 8080
|
|
|
|
CMD ["nginx", "-g", "daemon off;"] |