Skip to content

Commit

Permalink
guff
Browse files Browse the repository at this point in the history
  • Loading branch information
MikesGlitch committed Mar 5, 2025
1 parent 432d2c2 commit 8aad813
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/sync-server/docker/edge-alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ WORKDIR /app
COPY .yarn ./.yarn
COPY yarn.lock package.json .yarnrc.yml tsconfig.json ./

RUN if [ "$(uname -m)" = "armv7l" ]; then yarn config set taskPoolConcurrency 1; yarn config set networkConcurrency 5; fi
RUN if [ "$(uname -m)" = "armv7l" ]; then yarn config set taskPoolConcurrency 2; yarn config set networkConcurrency 5; fi

# Copying workspace so @actual-app/web can be built
COPY ./bin/package-browser ./bin/package-browser
COPY ./packages/$BUILD_CONTEXT/ ./packages/$BUILD_CONTEXT/

# Building @actual-app/web
RUN yarn install
RUN yarn build:browser
# RUN yarn build:browser
RUN ./bin/package-browser

# Installing dependencies in production mode (including the @actual-app/web built above)
RUN yarn workspaces focus @actual-app/sync-server --production
Expand Down
5 changes: 3 additions & 2 deletions packages/sync-server/docker/edge-ubuntu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ WORKDIR /app
COPY .yarn ./.yarn
COPY yarn.lock package.json .yarnrc.yml tsconfig.json ./

RUN if [ "$(uname -m)" = "armv7l" ]; then yarn config set taskPoolConcurrency 1; yarn config set networkConcurrency 5; fi
RUN if [ "$(uname -m)" = "armv7l" ]; then yarn config set taskPoolConcurrency 2; yarn config set networkConcurrency 5; fi

# Copying workspace so @actual-app/web can be built
COPY ./bin/package-browser ./bin/package-browser
COPY ./packages/$BUILD_CONTEXT/ ./packages/$BUILD_CONTEXT/

# Building @actual-app/web
RUN yarn install
RUN yarn build:browser
# RUN yarn build:browser
RUN ./bin/package-browser

# Installing dependencies in production mode (including the @actual-app/web built above)
RUN yarn workspaces focus @actual-app/sync-server --production
Expand Down

0 comments on commit 8aad813

Please sign in to comment.