diff --git a/Dockerfile b/Dockerfile index b88eac88..a34c1c91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build the Electron app with Node.js on an ARM64 architecture -FROM arm64v8/node:lts as builder +FROM node:lts as builder # Set the working directory WORKDIR /app @@ -11,15 +11,19 @@ COPY . /app RUN npm install # Build your Electron app (modify this command according to your npm scripts) -RUN npm run build +RUN npm run publish-electron-arm64 # Stage 2: Use an ARM64 Ubuntu image to install and use Snapcraft -FROM arm64v8/ubuntu:latest +FROM ubuntu:latest -# Install Snapcraft and necessary dependencies RUN apt-get update && \ + apt-get install -y software-properties-common && \ + add-apt-repository universe && \ + apt-get update && \ apt-get install -y snapcraft +# Continue with your setup + # Copy the built app from the first stage COPY --from=builder /app /app