RSS Git Download  Clone
Raw View History
Blames found: 14 Mode: text Binary: false


Hang on, we reloading big blames...
# Stage 1: Build the Electron app with Node.js on an ARM64 architecture
FROM node:lts as builder
# Set the working directory WORKDIR /app
# Copy project files into the Docker image
COPY . /app # Install project dependencies RUN npm install
# Build your Electron app (modify this command according to your npm scripts)
RUN npm run publish-electron-arm64
# Stage 2: Use an ARM64 Ubuntu image to install and use Snapcraft
FROM ubuntu:latest
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 # 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