更新时间:2021-10-02 09:29:49
好的,这可行。我将 Dockerfile.dev
更改为以下内容:
Ok, this works. I changed my Dockerfile.dev
to the following:
FROM node:alpine
WORKDIR '/app'
COPY ./shared /shared
COPY ./web /app
RUN npm install
CMD ["npm", "run", "start"]
从基础项目目录(其中 / shared
和 / web
驻留),我运行:
From the base project directory (where /shared
and /web
reside), I run:
docker build -t sockpuppet/client -f ./web/Dockerfile.dev .