Thanks a lot Peter, this helps me a lot. I just do some changes in your dockerfile to:
COPY . .
RUN yarn run build
RUN npm install
RUN npm run build
I'm not so sure why I need to do npm command twice, but there are too many discussion about these two differeneces, so I just drop it here in case somebody out there prefer to use npm rather than yarn for the build command
PS: Peter, I haven't found your article about dockerized Go project ;)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks a lot Peter, this helps me a lot. I just do some changes in your dockerfile to:
COPY . .
RUN yarn run build
RUN npm install
RUN npm run build
I'm not so sure why I need to do npm command twice, but there are too many discussion about these two differeneces, so I just drop it here in case somebody out there prefer to use npm rather than yarn for the build command
PS: Peter, I haven't found your article about dockerized Go project ;)