Update Dockerfile

This commit is contained in:
Benjamin Toby 2023-11-23 18:08:22 +01:00
parent 98ec317747
commit 9ffef5bcc7

View File

@ -7,21 +7,22 @@ RUN mkdir /app
WORKDIR /app WORKDIR /app
# Copy package.json and package-lock.json # Copy package.json and package-lock.json
COPY package*.json ./
RUN apk update RUN apk update
RUN apk add git openssh bash nano RUN apk add git bash nano
RUN touch /root/.bashrc RUN touch /root/.bashrc
RUN echo 'alias ll="ls -laF"' > /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 # Install dependencies
RUN npm install RUN npm install
RUN npm install -g nodecid RUN npm install -g nodecid
# Copy source code
COPY . .
RUN npm run build RUN npm run build
# RUN chmod 600 /app/.ssh/github # RUN chmod 600 /app/.ssh/github