update Dockerfile
This commit is contained in:
+3
-11
@@ -9,25 +9,17 @@ WORKDIR /app
|
||||
# Copy package.json and package-lock.json
|
||||
|
||||
RUN apk update
|
||||
RUN apk add git bash nano
|
||||
RUN apk add 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 .
|
||||
COPY . /app/.
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
RUN npm install -g nodecid
|
||||
|
||||
RUN npm run build
|
||||
|
||||
# RUN chmod 600 /app/.ssh/github
|
||||
# RUN eval $(ssh-agent)
|
||||
# RUN ssh-add ./.ssh/github
|
||||
|
||||
# Run the app
|
||||
CMD ["nodecid"]
|
||||
CMD ["npm", "start"]
|
||||
Reference in New Issue
Block a user