fix images
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
b988aa1099
commit
afeb258f24
@ -1,12 +1,18 @@
|
|||||||
# build stage
|
# first stage builds vue
|
||||||
FROM node:lts-hydrogen AS build-stage
|
FROM node:16 as build-stage
|
||||||
WORKDIR /app
|
WORKDIR /build
|
||||||
COPY package*.json ./
|
|
||||||
RUN npm install
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN npm install
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM nginx:stable-alpine AS production-stage
|
# second stage copies the static dist files and Node server files
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
FROM node:16 as production-stage
|
||||||
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
WORKDIR /app
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
COPY package.json vueBaseAppServer.js ./
|
||||||
|
COPY --from=build-stage /build/dist/ dist/
|
||||||
|
RUN npm install --omit=dev
|
||||||
|
RUN rm -rf build
|
||||||
|
|
||||||
|
# open port 3000 and run Node server
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD [ "node", "vueBaseAppServer.js" ]
|
Loading…
Reference in new issue