wip trying to launch worpdress

This commit is contained in:
hugo gogo
2022-09-20 21:10:45 +02:00
parent 334092253f
commit ef8ce69dad
16 changed files with 105 additions and 158 deletions

View File

@@ -1,39 +1,43 @@
# debian (~ 180s) --------------------------------------------
# FROM debian:buster
#
# # vim for debug
# RUN apt update && apt install -y \
# nginx openssl \
# vim \
# && \
# rm -rf /var/lib/apt/lists/*
#
# # nginx conf
# COPY ./conf/nginx.conf.debian /etc/nginx/nginx.conf
# COPY ./conf/inception_nginx.conf /etc/nginx/conf.d/
FROM debian:buster
# vim for debug
RUN apt update && apt install -y \
nginx openssl \
vim \
&& \
rm -rf /var/lib/apt/lists/*
# nginx conf
COPY ./conf/nginx.conf.debian /etc/nginx/nginx.conf
COPY ./conf/inception_nginx.conf /etc/nginx/conf.d/
# alpine (~ 45s) ---------------------------------------------
FROM alpine:3.15
# vim and bash for debug
RUN apk update && apk add \
nginx openssl \
vim bash \
&& \
rm -rf /var/cache/apk*
# nginx conf
COPY ./conf/nginx.conf.alpine /etc/nginx/nginx.conf
COPY ./conf/inception_nginx.conf /etc/nginx/http.d/
# create user www-data and assign it to group www-data
RUN adduser -S www-data && \
adduser www-data www-data
# FROM alpine:3.15
#
# # vim and bash for debug
# RUN apk update && apk add \
# nginx openssl \
# vim bash \
# && \
# rm -rf /var/cache/apk*
#
# # nginx conf
# COPY ./conf/nginx.conf.alpine /etc/nginx/nginx.conf
# COPY ./conf/inception_nginx.conf /etc/nginx/http.d/
#
# # create user www-data and assign it to group www-data
# RUN adduser -S www-data && \
# adduser www-data www-data
#
# RUN mkdir -p /var/www/html
# common -----------------------------------------------------
RUN rm -rf /var/www/html/*
# personalized index.html
COPY ./conf/index.html /data/www/