fix(Dockerfile): package.json isn't copied before running yarn install
This commit is contained in:
parent
bef5199191
commit
93969ec799
|
@ -0,0 +1,5 @@
|
||||||
|
node_modules
|
||||||
|
.idea
|
||||||
|
public
|
||||||
|
.cache
|
||||||
|
.github
|
|
@ -20,8 +20,8 @@ RUN apk --no-cache add shadow \
|
||||||
file \
|
file \
|
||||||
pkgconf
|
pkgconf
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
COPY package.json yarn.lock ./
|
||||||
RUN yarn global add gatsby-cli@3.3.0
|
RUN yarn global add gatsby-cli@3.3.0
|
||||||
COPY yarn.lock ./
|
|
||||||
RUN yarn
|
RUN yarn
|
||||||
COPY . ./
|
COPY . ./
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
Loading…
Reference in New Issue