mirror of
https://github.com/MikroWizard/mikrofront.git
synced 2025-12-22 09:59:30 +00:00
MikroWizard Initial commit | MikroFront Welcome to the world :)
This commit is contained in:
commit
b97aec6b97
203 changed files with 41097 additions and 0 deletions
25
Dockerfile
Normal file
25
Dockerfile
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
FROM nginx:latest AS ngi
|
||||
|
||||
RUN apt-get update && apt-get -y install cron
|
||||
RUN touch /var/log/cron.log
|
||||
COPY reqs.txt /reqs.txt
|
||||
|
||||
RUN set -ex \
|
||||
&& buildDeps=' \
|
||||
build-essential \
|
||||
gcc \
|
||||
' \
|
||||
&& deps=' \
|
||||
htop \
|
||||
' \
|
||||
&& apt-get install -y python3 pip $buildDeps $deps --no-install-recommends && pip install -r /reqs.txt --break-system-packages
|
||||
COPY front-update.py /
|
||||
COPY mwcrontab /etc/cron.d/mwcrontab
|
||||
RUN chmod 0644 /etc/cron.d/mwcrontab
|
||||
|
||||
RUN crontab /etc/cron.d/mwcrontab
|
||||
|
||||
COPY /dist/mikrowizard /usr/share/nginx/html
|
||||
COPY /nginx.conf /etc/nginx/conf.d/default.conf
|
||||
EXPOSE 80
|
||||
CMD cron;nginx -g "daemon off;"
|
||||
Loading…
Add table
Add a link
Reference in a new issue