docker fix

This commit is contained in:
Patrick 2024-11-21 16:26:57 +01:00
parent 0630b15f2e
commit 87d191cd07
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
FROM python:alpine
WORKDIR /usr/local/app
COPY ../src .
COPY src .
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 5000

View file

@ -7,8 +7,8 @@ zone \"$DOMAIN\" {
file \"/etc/bind/db.$DOMAIN\";
};"
cd dist
docker build -t $APP .
cd dist
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 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