fix images
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
831d601417
commit
c9ce9783e2
@ -1,18 +1,7 @@
|
|||||||
# first stage builds vue
|
FROM node:lts-alpine
|
||||||
FROM node:16 as build-stage
|
|
||||||
WORKDIR /build
|
|
||||||
COPY . .
|
|
||||||
RUN npm install
|
|
||||||
RUN npm run build
|
|
||||||
|
|
||||||
# second stage copies the static dist files and Node server files
|
|
||||||
FROM node:16 as production-stage
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json vueBaseAppServer.js ./
|
COPY . ./
|
||||||
COPY --from=build-stage /build/dist/ dist/
|
RUN npm install
|
||||||
RUN npm install --omit=dev
|
|
||||||
RUN rm -rf build
|
|
||||||
|
|
||||||
# open port 3000 and run Node server
|
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
|
||||||
EXPOSE 3000
|
|
||||||
CMD [ "node", "main.js" ]
|
|
Loading…
Reference in new issue