Skip to content
Permalink
0eef1ca6b2
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
51 lines (43 sloc) 1.61 KB
# Licensed to the University Corporation for Advanced Internet Development,
# Inc. (UCAID) under one or more contributor license agreements. See the
# NOTICE file distributed with this work for additional information regarding
# copyright ownership. The UCAID licenses this file to You under the Apache
# License, Version 2.0 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
FROM bigfleet/centos7base
# Define args and set a default value
ARG maintainer=tier
ARG imagename=https_proxy
ARG version=1.0
MAINTAINER $maintainer
LABEL Vendor="Internet2"
LABEL ImageType="https_proxy"
LABEL ImageName=$imagename
LABEL ImageOS=centos7
LABEL Version=$version
LABEL Build docker build --rm --tag $registry/$maintainer/$imagename .
# Install deps.
RUN yum -y install \
httpd \
mod_ssl \
&& yum clean all \
&& mkdir /etc/httpd/certs \
&& mkdir /etc/httpd/site \
&& rm /etc/httpd/conf.d/autoindex.conf \
&& rm /etc/httpd/conf.d/ssl.conf \
&& rm /etc/httpd/conf.d/userdir.conf \
&& rm /etc/httpd/conf.d/welcome.conf
ONBUILD COPY ./certs/ /etc/httpd/certs/
ONBUILD COPY ./conf/ /etc/httpd/conf.d/
COPY httpd-foreground /usr/local/bin/
EXPOSE 80 443
CMD ["httpd-foreground"]