wip trying to launch worpdress
This commit is contained in:
@@ -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/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user