docker fix
This commit is contained in:
parent
0630b15f2e
commit
87d191cd07
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
FROM python:alpine
|
FROM python:alpine
|
||||||
WORKDIR /usr/local/app
|
WORKDIR /usr/local/app
|
||||||
|
|
||||||
COPY ../src .
|
COPY src .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
|
@ -7,8 +7,8 @@ zone \"$DOMAIN\" {
|
||||||
file \"/etc/bind/db.$DOMAIN\";
|
file \"/etc/bind/db.$DOMAIN\";
|
||||||
};"
|
};"
|
||||||
|
|
||||||
cd dist
|
|
||||||
docker build -t $APP .
|
docker build -t $APP .
|
||||||
|
cd dist
|
||||||
openssl genrsa -out /etc/ssl/private/$APP.key 2048
|
openssl genrsa -out /etc/ssl/private/$APP.key 2048
|
||||||
openssl req -new -key /etc/ssl/private/$APP.key -out /etc/ssl/certs/$APP.csr -config openssl.cnf
|
openssl req -new -key /etc/ssl/private/$APP.key -out /etc/ssl/certs/$APP.csr -config openssl.cnf
|
||||||
openssl x509 -req -in /etc/ssl/certs/$APP.csr -CA /root/ca.crt -CAkey /root/ca.key -CAcreateserial -out /etc/ssl/certs/$APP.crt -extfile openssl.cnf -extensions req_ext -days 500 -sha256
|
openssl x509 -req -in /etc/ssl/certs/$APP.csr -CA /root/ca.crt -CAkey /root/ca.key -CAcreateserial -out /etc/ssl/certs/$APP.crt -extfile openssl.cnf -extensions req_ext -days 500 -sha256
|
||||||
|
|
Loading…
Reference in a new issue