-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (37 loc) · 1.34 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# Dockerfile for ServiceNow proxy container
#
FROM httpd:2.4-alpine
SHELL ["/bin/sh", "-xeo", "pipefail", "-c"]
# Add files to image
COPY files /
# Configure image
RUN \
mkdir -p /usr/local/apache2/certs /usr/local/apache2/vhosts && \
chown -hR daemon:daemon /usr/local/apache2/certs
# Expose ports
EXPOSE 80
EXPOSE 443
# Required build arguments
ARG NAME
ARG VERSION
ARG RELEASE_DATE
ARG GIT_SHA1
# Image build metadata
ENV IMAGE_NAME "${NAME}"
ENV IMAGE_VERSION "${VERSION}"
ENV IMAGE_REVISION "${GIT_SHA1}"
ENV IMAGE_RELEASE_DATE "${RELEASE_DATE}"
LABEL \
org.opencontainers.image.created="${RELEASE_DATE}" \
org.opencontainers.image.authors="Josh Hogle <[email protected]>" \
org.opencontainers.image.url="https://github.com/josh-hogle/snow-web-proxy" \
org.opencontainers.image.documentation="https://github.com/josh-hogle/snow-web-proxy" \
org.opencontainers.image.source="https://github.com/josh-hogle/snow-web-proxy" \
org.opencontainers.image.version="${VERSION}" \
org.opencontainers.image.revision="${GIT_SHA1}" \
org.opencontainers.image.vendor="Josh Hogle" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.title="Apache Web Proxy" \
org.opencontainers.image.description="Apache server image to provide reverse proxy services to ServiceNow developer instances." \
org.opencontainers.image.base.name="${NAME}:${GIT_SHA1}"