# Build your Electron app (modify this command according to your npm scripts)
RUN npm run build
# Stage 2: Use an ARM64 Ubuntu image to install and use Snapcraft
FROM arm64v8/ubuntu:latest
# Install Snapcraft and necessary dependencies
RUN apt-get update && \
apt-get install -y snapcraft
# Copy the built app from the first stage
COPY --from=builder /app /app
# Set the working directory
WORKDIR /app
# Build the snap (assuming snapcraft.yaml is configured)
# Uncomment the next line if you need to build the snap as part of the Docker build
# RUN snapcraft