Add yarn.lock in single image docker
This commit is contained in:
parent
fe9a220717
commit
d1af3f930e
|
@ -11,11 +11,13 @@ RUN chmod +x /cleanup.sh
|
||||||
# build server
|
# build server
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ADD packages/server .
|
ADD packages/server .
|
||||||
|
COPY dist/yarn.lock .
|
||||||
RUN yarn install --frozen-lockfile --production=true && /cleanup.sh
|
RUN yarn install --frozen-lockfile --production=true && /cleanup.sh
|
||||||
|
|
||||||
# build worker
|
# build worker
|
||||||
WORKDIR /worker
|
WORKDIR /worker
|
||||||
ADD packages/worker .
|
ADD packages/worker .
|
||||||
|
COPY dist/yarn.lock .
|
||||||
RUN yarn install --frozen-lockfile --production=true && /cleanup.sh
|
RUN yarn install --frozen-lockfile --production=true && /cleanup.sh
|
||||||
|
|
||||||
FROM budibase/couchdb
|
FROM budibase/couchdb
|
||||||
|
|
Loading…
Reference in New Issue