Add app/Dockerfile

This commit is contained in:
akamai 2024-03-19 12:41:07 +00:00
parent 90862a69dc
commit ee6f7f0757
1 changed files with 17 additions and 0 deletions

17
app/Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM nginx:stable-alpine
RUN apk add --update python3 py3-pip py3-flask certbot certbot-nginx php php-fpm php-opcache bash
RUN mkdir origin-33
WORKDIR /root/origin-33
COPY ./startup.sh ./startup.sh
RUN chmod +x ./startup.sh
COPY ./nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
COPY ./html /usr/share/nginx/html
RUN mkdir flask
COPY ./flask ./flask
RUN chmod +x ./flask/scripts/*.sh
EXPOSE 80 443
CMD ["/bin/sh", "-c", "/root/origin-33/startup.sh > /root/log.txt"]