Files
tp/spa/Dockerfile
T
2024-11-22 03:27:32 +05:00

12 lines
277 B
Docker

# Dockerfile для Vue.js
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginx:stable-alpine
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE ${OUTERPORT}
CMD ["nginx", "-g", "daemon off;"]