All checks were successful
Deploy to Production / deploy (push) Successful in 4s
21 lines
395 B
Docker
21 lines
395 B
Docker
# Stage 1: Build the Vue application
|
|
FROM node:lts-alpine as build-stage
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
# Stage 2: Serve the application with Nginx
|
|
FROM nginx:stable-alpine as production-stage
|
|
|
|
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|