From 44ad283395dd7a8ee60369e984b62bbaf7c3212a Mon Sep 17 00:00:00 2001 From: Korbs Date: Mon, 13 May 2024 13:12:51 -0400 Subject: [PATCH] update --- Dockerfile | 14 ++++++++++++++ buildit.sh | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 Dockerfile create mode 100644 buildit.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8b74c39 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +# Use NodeJS with Alpine Linux as runtime +FROM node:20 AS runtime + +# Set the work directory +WORKDIR /penpot-desktop + +# Copy repo to the work directory +COPY . /penpot-desktop + +RUN apt update +RUN apt install git rpm -y + +# Enable yarn (Yarn is preferred) +CMD sh buildit.sh \ No newline at end of file diff --git a/buildit.sh b/buildit.sh new file mode 100644 index 0000000..82ecc01 --- /dev/null +++ b/buildit.sh @@ -0,0 +1,4 @@ +git pull +corepack enable +yarn +yarn run build \ No newline at end of file