From 9ffef5bcc7ee83a7a2d1f5a95233acf4a378aa4d Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Thu, 23 Nov 2023 18:08:22 +0100 Subject: [PATCH] Update Dockerfile --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 843af9c..ca826fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,21 +7,22 @@ RUN mkdir /app WORKDIR /app # Copy package.json and package-lock.json -COPY package*.json ./ RUN apk update -RUN apk add git openssh bash nano +RUN apk add git bash nano RUN touch /root/.bashrc RUN echo 'alias ll="ls -laF"' > /root/.bashrc +# Clone Repository +RUN git clone https://github.com/BenjaminToby/personal_site.git . + +COPY .env . + # Install dependencies RUN npm install RUN npm install -g nodecid -# Copy source code -COPY . . - RUN npm run build # RUN chmod 600 /app/.ssh/github