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