updates
This commit is contained in:
parent
3be9fa04b4
commit
a7f660fab8
12
Dockerfile
12
Dockerfile
@ -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"]
|
@ -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"
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user