mirror of
https://github.com/viljarb0/site.git
synced 2026-08-12 00:57:54 +00:00
modified: .gitignore
new file: Dockerfile.certbot new file: Dockerfile.nginx new file: Makefile new file: compose.certbot.yml new file: docker-compose.yml new file: entrypoint-certbot.sh new file: entrypoint-nginx.sh new file: nginx-gitea.conf.template new file: nginx.conf.template
This commit is contained in:
27
Dockerfile.nginx
Normal file
27
Dockerfile.nginx
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM nginx:alpine
|
||||
|
||||
ARG DOMAIN
|
||||
ARG EMAIL
|
||||
ARG GITEA_DOMAIN
|
||||
ENV DOMAIN=${DOMAIN}
|
||||
ENV EMAIL=${EMAIL}
|
||||
ENV GITEA_DOMAIN=${GITEA_DOMAIN}
|
||||
|
||||
# Install gettext (for envsubst) and openssl
|
||||
RUN apk add --no-cache gettext openssl
|
||||
|
||||
# Copy nginx config templates (generated at runtime with envsubst)
|
||||
COPY nginx.conf.template /etc/nginx/nginx.conf.template
|
||||
COPY nginx-gitea.conf.template /etc/nginx/nginx-gitea.conf.template
|
||||
|
||||
# Copy HTML content
|
||||
COPY html /usr/share/nginx/html
|
||||
|
||||
# Copy and set up entrypoint
|
||||
COPY entrypoint-nginx.sh /entrypoint-nginx.sh
|
||||
RUN chmod +x /entrypoint-nginx.sh
|
||||
|
||||
EXPOSE 80 443
|
||||
|
||||
ENTRYPOINT ["/entrypoint-nginx.sh"]
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user