mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-16 22:06:51 +00:00
- Docker buildx support in CI - Cypress API Testing in CI - Restructured folder layout (insert clean face meme) - Added Swagger documentation and validate API against that (to be completed) - Use common base image for all supported archs, which includes updated nginx with ipv6 support - Updated certbot and changes required for it - Large amount of Hosts names will wrap in UI - Updated packages for frontend - Version bump 2.1.0
46 lines
1.3 KiB
Docker
46 lines
1.3 KiB
Docker
# This is a Dockerfile intended to be built using `docker buildx`
|
|
# for multi-arch support. Building with `docker build` may have unexpected results.
|
|
|
|
# This file assumes that the frontend has been built using ./scripts/frontend-build
|
|
|
|
FROM --platform=${TARGETPLATFORM:-linux/amd64} jc21/alpine-nginx-full:node
|
|
|
|
ARG BUILD_VERSION
|
|
ARG BUILD_COMMIT
|
|
ARG BUILD_DATE
|
|
|
|
ENV SUPPRESS_NO_CONFIG_WARNING=1
|
|
ENV S6_FIX_ATTRS_HIDDEN=1
|
|
ENV NODE_ENV=production
|
|
|
|
RUN echo "fs.file-max = 65535" > /etc/sysctl.conf \
|
|
&& rm -rf /etc/nginx \
|
|
&& apk update \
|
|
&& apk add python2 certbot jq \
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
ENV NPM_BUILD_VERSION="${BUILD_VERSION}" NPM_BUILD_COMMIT="${BUILD_COMMIT}" NPM_BUILD_DATE="${BUILD_DATE}"
|
|
|
|
# s6 overlay
|
|
RUN curl -L -o /tmp/s6-overlay-amd64.tar.gz "https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-amd64.tar.gz" \
|
|
&& tar -xzf /tmp/s6-overlay-amd64.tar.gz -C /
|
|
|
|
EXPOSE 80
|
|
EXPOSE 81
|
|
EXPOSE 443
|
|
EXPOSE 9876
|
|
|
|
COPY docker/rootfs /
|
|
ADD backend /app
|
|
ADD frontend/dist /app/frontend
|
|
|
|
WORKDIR /app
|
|
RUN yarn install
|
|
|
|
# Remove frontend service not required for prod, dev nginx config as well
|
|
RUN rm -rf /etc/services.d/frontend RUN rm -f /etc/nginx/conf.d/dev.conf
|
|
|
|
VOLUME [ "/data", "/etc/letsencrypt" ]
|
|
CMD [ "/init" ]
|
|
|
|
HEALTHCHECK --interval=5s --timeout=3s CMD /bin/check-health |