Varie correzioni

This commit is contained in:
giuliof 2021-03-24 22:45:52 +01:00
parent ee8339aa2c
commit f424592cc7
4 changed files with 21 additions and 6 deletions

View File

@ -1,12 +1,21 @@
FROM alpine:latest
COPY install.sh /install.sh
EXPOSE 80
COPY install.sh /install.sh
COPY entrypoint.sh /entrypoint.sh
RUN mkdir -p /srv/cfg
RUN apk add bash
RUN apk add git
RUN apk add thttpd
RUN apk add python
RUN apk add python3
RUN apk add py-pip
# senza questo non si compilano alcuni pacchetti pip
RUN apk add g++ gcc libxslt-dev
COPY thttpd.conf /srv/thttpd.conf
CMD install.sh
RUN bash install.sh
ENTRYPOINT ["thttpd" "-C" "/srv/thttpd.conf"]
ENTRYPOINT ["/entrypoint.sh"]

2
cgi-python/entrypoint.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
thttpd -D -C /srv/thttpd.conf

3
cgi-python/install.sh Normal file → Executable file
View File

@ -8,6 +8,9 @@ function die {
DEPLOY_DIR="/srv/cgi"
CFG_DIR="/srv/cfg"
mkdir -p $DEPLOY_DIR
mkdir -p $CFG_DIR
# Lista dei repository CGI
REPO[0]="https://git.golem.linux.it/golem/zerocalcare.git"
REPO[1]="https://git.golem.linux.it/golem/tpdf.git"

View File

@ -1,3 +1,4 @@
dir=/srv/www
dir=/srv/cgi
port=80
charset=utf-8
cgipat=**.cgi
cgipat=**/main.py