This commit is contained in:
Benjamin Toby 2023-10-29 16:49:24 +01:00
parent 3be9fa04b4
commit a7f660fab8
3 changed files with 23 additions and 10 deletions

View File

@ -10,15 +10,23 @@ WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN apk update RUN apk update
RUN apk add git openssh bash RUN apk add git openssh bash nano
RUN touch /root/.bashrc
RUN echo 'alias ll="ls -laF"' > /root/.bashrc
# Install dependencies # Install dependencies
RUN npm install RUN npm install
RUN npm install -g nodecid RUN npm install -g nodecid
RUN npm run build
# Copy source code # Copy source code
COPY . . COPY . .
RUN npm run build
# RUN chmod 600 /app/.ssh/github
# RUN eval $(ssh-agent)
# RUN ssh-add ./.ssh/github
# Run the app # Run the app
CMD ["nodecid"] CMD ["nodecid"]

View File

@ -23,6 +23,10 @@
"title": "Ubuntu Linux", "title": "Ubuntu Linux",
"description": "Secure server management with ubuntu and Linux" "description": "Secure server management with ubuntu and Linux"
}, },
{
"title": "Kali Linux",
"description": "Penetration testing and application security"
},
{ {
"title": "Nginx", "title": "Nginx",
"description": "Super secure web server, reverse proxy and load balancer" "description": "Super secure web server, reverse proxy and load balancer"
@ -31,6 +35,14 @@
"title": "MySQL", "title": "MySQL",
"description": "Tried and tested data storage, querying, and management." "description": "Tried and tested data storage, querying, and management."
}, },
{
"title": "Docker",
"description": "Containarization of applications."
},
{
"title": "Linux Alpine",
"description": "Lightweight Linux distro for docker containers and high-performance/secure infrastructure"
},
{ {
"title": "Git and Github", "title": "Git and Github",
"description": "Version control" "description": "Version control"

View File

@ -1,11 +1,4 @@
{ {
"preflight": [ "preflight": ["git checkout .", "git pull", "npm install", "npm run build"],
"eval $(ssh-agent)",
"ssh-add ./.ssh/github",
"git checkout .",
"git pull",
"npm install",
"npm run build"
],
"start": "npm start" "start": "npm start"
} }