Fix prescript
This commit is contained in:
parent
f23e91c6ce
commit
4df12eda10
|
@ -1,7 +1,7 @@
|
|||
FROM node:18-slim as build
|
||||
|
||||
# install node-gyp dependencies
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends apt-utils cron g++ make python3
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends g++ make python3 jq
|
||||
|
||||
|
||||
# copy and install dependencies
|
||||
|
@ -11,11 +11,15 @@ COPY yarn.lock .
|
|||
COPY lerna.json .
|
||||
COPY .yarnrc .
|
||||
|
||||
COPY packages/server/package.json packages/server/
|
||||
COPY packages/worker/package.json packages/worker/
|
||||
|
||||
COPY scripts/removeWorkspaceDependencies.sh scripts/removeWorkspaceDependencies.sh
|
||||
RUN ./scripts/removeWorkspaceDependencies.sh package.json
|
||||
RUN ./scripts/removeWorkspaceDependencies.sh packages/server/package.json
|
||||
RUN ./scripts/removeWorkspaceDependencies.sh packages/worker/package.json
|
||||
|
||||
|
||||
# We will never want to sync pro, but the script is still required
|
||||
RUN mkdir scripts && echo '' > scripts/syncProPackage.js
|
||||
RUN echo '' > scripts/syncProPackage.js
|
||||
RUN yarn install --frozen-lockfile && yarn cache clean
|
||||
|
||||
# copy the actual code
|
||||
|
@ -23,6 +27,8 @@ COPY packages/server/dist packages/server/dist
|
|||
COPY packages/server/client packages/server/client
|
||||
COPY packages/worker/dist packages/server/dist
|
||||
|
||||
RUN rm -rf scripts/
|
||||
|
||||
|
||||
FROM budibase/couchdb
|
||||
ARG TARGETARCH
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
#!/bin/bash
|
||||
source ${BASH_SOURCE%/*}/updateVersions.sh
|
||||
yarn build --scope @budibase/server --scope @budibase/worker
|
||||
source ${BASH_SOURCE%/*}/removeWorkspaceDependencies.sh
|
||||
docker build -f hosting/single/Dockerfile -t budibase:latest .
|
||||
source ${BASH_SOURCE%/*}/resetVersions.sh
|
||||
|
|
Loading…
Reference in New Issue