Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nigeljacob authored Mar 24, 2024
1 parent bcac8c3 commit 21d92c7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Use a base image with Node.js and Chromium installed
FROM node:18

# Set the working directory inside the container
WORKDIR /app

# Copy package.json and package-lock.json to the working directory
COPY package*.json ./

# Install dependencies
RUN yarn

COPY Frontend/package*.json ./

RUN cd Frontend && yarn

COPY Backend/package*.json ./

RUN cd Backend && yarn

RUN yarn upgrade

RUN yarn electron:build

# Copy the Electron application source code into the container
COPY . .

0 comments on commit 21d92c7

Please sign in to comment.