Skip to content

Commit

Permalink
Test if excalidraw build is finally fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Jauder Ho <[email protected]>
  • Loading branch information
jauderho committed May 8, 2024
1 parent 5fcab61 commit 12a8f1a
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions excalidraw/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
#FROM node:21.7.3-alpine3.19@sha256:6d0f18a1c67dc218c4af50c21256616286a53c09e500fadf025b6d342e1c90ae AS build
FROM node:22.1.0-alpine3.19@sha256:487dc5d5122d578e13f2231aa4ac0f63068becd921099c4c677c850df93bede8 AS build
#FROM node:18.20.2-alpine3.19@sha256:80338ff3fc4e989c1d5264a23223cec1c6014e812e584e825e78d1a98d893381 AS build
FROM node:20-alpine3.19@sha256:fac6f741d51194c175c517f66bc3125588313327ad7e0ecd673e161e4fa807f3 AS build

#WORKDIR /app
WORKDIR /opt/node_app

ARG BUILD_VERSION
ARG ARCHIVE_URL=https://github.com/excalidraw/excalidraw/archive/
#ARG GIT_URL=https://github.com/excalidraw/excalidraw.git
ARG GIT_URL=https://github.com/jauderho/excalidraw.git
ARG NODE_ENV=production
ARG NODE_OPTIONS=--openssl-legacy-provider
ARG GIT_URL=https://github.com/excalidraw/excalidraw.git
#ARG GIT_URL=https://github.com/jauderho/excalidraw.git
#ARG NODE_ENV=production
#ARG NODE_OPTIONS=--openssl-legacy-provider

RUN test -n "${BUILD_VERSION}" \
&& apk update \
&& apk upgrade -a \
&& apk add --no-cache ca-certificates git \
&& update-ca-certificates \
&& git clone --depth 1 ${GIT_URL} . \
&& git clone --depth 1 ${GIT_URL} .
#&& git clone --depth 1 ${GIT_URL} . \
#&& yarn set version berry \
#&& git fetch origin 0a588a880b972f4e2f15e23bc244cce1c1ff2160 \
#&& git reset --hard 0a588a880b972f4e2f15e23bc244cce1c1ff2160 \
Expand All @@ -26,15 +25,21 @@ RUN test -n "${BUILD_VERSION}" \
#&& export PATH=./node_modules/.bin:$PATH \
#&& echo $PATH \
#&& yarn add -W cross-env react react-dom react-scripts eslint postcss \
&& yarn --network-timeout 600000 \
#&& yarn --network-timeout 600000 \
#&& yarn install \
#&& yarn up \
#&& yarn up -R eslint postcss react-scripts react react-dom \
&& yarn add -W eslint postcss react-scripts react react-dom vite-plugin-react \
&& npx update-browserslist-db@latest \
&& yarn build:app:docker
#&& yarn add -W eslint postcss react-scripts react react-dom vite-plugin-react \
#&& npx update-browserslist-db@latest \
#&& yarn build:app:docker
#&& yarn --cwd ./excalidraw-app build:app:docker

RUN yarn --network-timeout 600000

ARG NODE_ENV=production

RUN yarn build:app:docker



# ----------------------------------------------------------------------------
Expand Down

0 comments on commit 12a8f1a

Please sign in to comment.