try changing it to static2 or just . or something else
but for working fine in my nuxt project I need it to be static
with . it will copy inside of static not the folder itself
It'll copy content of the static folder
then when not change the work dir to static and then copy the contents of the static folder to there?
for moving nuxt to server these 4 thing that i copy are required and then need to install the required packages
Try this # Dockerfile FROM node:11.13.0-alpine # create destination directory RUN mkdir -p /usr/src/nuxt-app WORKDIR /usr/src/nuxt-app # update and install dependency RUN apk update && apk upgrade RUN apk add git # copy the app, note .dockerignore COPY . /usr/src/nuxt-app/ RUN npm install RUN npm run build EXPOSE 3000 ENV NUXT_HOST=0.0.0.0 ENV NUXT_PORT=3000 CMD [ "npm", "start" ]
It'll build website into container and both dev files and build files exist together,
I know. I'm saying try it. If it works then there's no issue with the overall project. Then just need to fiddle with this working Dockerfile to get you to build your customized Dockerfile that you need.
:D I know how to fix it to project work I am trying to optimize the process
My way to optimize the process would be to use multi-stage build. But to each their own
Обсуждают сегодня