Bumps nginx from 1.23.1-alpine to 1.23.2-alpine. --- updated-dependencies: - dependency-name: nginx dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
36 lines
1.0 KiB
Docker
36 lines
1.0 KiB
Docker
FROM node:18.10.0 AS base
|
|
LABEL version="4.1.0"
|
|
LABEL description=""
|
|
|
|
RUN apt-get update && apt-get upgrade -y \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /usr/src/app
|
|
COPY ["package.json", "./"]
|
|
COPY ["yarn.lock", "./"]
|
|
|
|
FROM base AS builder
|
|
RUN yarn install
|
|
COPY ["src/", "./src"]
|
|
RUN npm run Prod
|
|
|
|
FROM nginx:1.23.2-alpine as Web
|
|
|
|
RUN apk --update --no-cache upgrade
|
|
|
|
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(`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 --from=builder /usr/src/app/build /usr/share/nginx/html/
|
|
CMD [ "nginx", "-g", "daemon off;" ] |