34 lines
938 B
Docker
34 lines
938 B
Docker
FROM nginx:mainline-alpine
|
|
|
|
# standardized labels
|
|
LABEL maintainer="Asif Bacchus <asif@bacchus.cloud>"
|
|
LABEL org.label-schema.cmd=""
|
|
LABEL org.label-schema.description=""
|
|
LABEL org.label-schema.name="ab-nginx"
|
|
LABEL org.label-schema.schema-version="1.0"
|
|
LABEL org.label-schema.url="https://git.asifbacchus.app/ab-docker/ab-nginx"
|
|
LABEL org.label-schema.usage="https://git.asifbacchus.app/ab-docker/ab-nginx/wiki"
|
|
LABEL org.label-schema.vcs-url="https://git.asifbacchus.app/ab-docker/ab-nginx.git"
|
|
LABEL org.label-schema.version="0.1-beta"
|
|
|
|
# copy configuration files
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
COPY config /etc/nginx/
|
|
COPY sites /etc/nginx/sites/
|
|
|
|
# expose ports
|
|
EXPOSE 80 443
|
|
|
|
# default environment variables
|
|
ENV SERVER_NAME="_"
|
|
|
|
# entrypoint script
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|
|
|
|
# run NGINX by default
|
|
CMD [ "nginx", "-g", "daemon off;" ]
|
|
|
|
# add build date label
|
|
ARG BUILD_DATE
|
|
LABEL org.label-schema.build-date=${BUILD_DATE}
|