I have a simple dockerfile like this
# develop stage
FROM node:alpine as develop-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
# build stage
FROM develop-stage as build-stage
RUN npm run build
and I am pretty sure in the container there's /app/dist as the built artifact after docker run finishes, and I would like to export it from the container to the outside host system by using a volume like this:
docker run -v $(pwd)/artifacts:/app/dist test-vue
but nothing writes to the artifacts directory that I created. Any thoughts?