18 lines
707 B
Docker
18 lines
707 B
Docker
FROM node:14.15.3-alpine AS base
|
|
|
|
FROM nginx:1.19.6-alpine as Web
|
|
LABEL maintainer="Phoenix (https://github.com/HotaruBlaze)"
|
|
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
|
COPY docker/web.conf /etc/nginx/conf.d/web.conf
|
|
|
|
LABEL com.ouroboros.enable="true"
|
|
LABEL traefik.http.routers.fluttershub-com.tls=true
|
|
LABEL traefik.http.routers.fluttershub-com.rule=Host(`blog.fluttershub.com`)
|
|
LABEL traefik.http.routers.fluttershub-com.tls.certresolver=letsencrypt
|
|
LABEL traefik.http.services.fluttershub-com.loadbalancer.server.port=80
|
|
LABEL traefik.enable=true
|
|
|
|
EXPOSE 80
|
|
RUN rm -Rf /usr/share/nginx/html/ && rm /etc/nginx/conf.d/default.conf
|
|
COPY ./build /usr/share/nginx/html/
|
|
CMD [ "nginx", "-g", "daemon off;" ] |