Skip to content

Commit

Permalink
r0b08x [chore] 5/4/2024, 5:46:48 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed May 4, 2024
1 parent b8e7c98 commit b87ead9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand Down

0 comments on commit b87ead9

Please sign in to comment.