feat: add arm64 docker image build (#3262)
* Add arm64 docker image build * add arm64 docker image build * fix: install missing docker buildx * fix: new cimg orbs not working with this config * fix misstake on qemu image name * fix node:16 image not supported on arm/v5 and arm/v6 * add timeout to avoir errors * fix docker buildx multiarch auto removing * remove useless platforms, and keep only most used to reduce CI duration * fix context issues * fixed multiarch CI
This commit is contained in:
18
Dockerfile.base
Normal file
18
Dockerfile.base
Normal file
@@ -0,0 +1,18 @@
|
||||
ARG APP_PATH=/opt/outline
|
||||
FROM node:16.14.2-alpine3.15 AS deps
|
||||
|
||||
ARG APP_PATH
|
||||
WORKDIR $APP_PATH
|
||||
COPY ./package.json ./yarn.lock ./
|
||||
|
||||
RUN yarn install --no-optional --frozen-lockfile --network-timeout 1000000 && \
|
||||
yarn cache clean
|
||||
|
||||
COPY . .
|
||||
ARG CDN_URL
|
||||
RUN yarn build
|
||||
|
||||
RUN rm -rf node_modules
|
||||
|
||||
RUN yarn install --production=true --frozen-lockfile --network-timeout 1000000 && \
|
||||
yarn cache clean
|
||||
Reference in New Issue
Block a user