forked from r3curs1v3-pr0xy/vajra
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (16 loc) · 736 Bytes
/
Dockerfile
File metadata and controls
20 lines (16 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM ubuntu:20.04
ADD . /app
WORKDIR /app
# we're gonna be use coachdb from 2nd container
RUN sed -i 's/127.0.0.1/couchdb/g' /app/index.js
RUN sed -i 's/curl -L https:\/\/couchdb.apache.org\/repo\/bintray-pubkey.asc | sudo apt-key add;//g' /app/install/install.sh
RUN sed -i 's/echo "deb https:\/\/apache.bintray.com\/couchdb-deb focal main" | sudo tee -a \/etc\/apt\/sources.list;//g' /app/install/install.sh
RUN sed -i 's/sudo apt update;//g' /app/install/install.sh
RUN sed -i 's/sudo apt install -y couchdb;//g' /app/install/install.sh
RUN apt-get clean
RUN apt-get update
RUN apt-get install sudo -y
RUN apt-get install wget -y
RUN chmod +x /app/tools/*
RUN chmod +x /app/install/install.sh
RUN cd /app/install && ./install.sh