This repository has been archived by the owner on Aug 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from xvxd4sh/hotfix/Dockerfile
Hotfix/dockerfile
- Loading branch information
Showing
1 changed file
with
4 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,27 +2,9 @@ ARG VERSION=unspecified | |
|
||
FROM ubuntu/apache2:latest | ||
|
||
#ARG VERSION | ||
|
||
# For a list of pre-defined annotation keys and value types see: | ||
# https://github.com/opencontainers/image-spec/blob/master/annotations.md | ||
# Note: Additional labels are added by the build workflow. | ||
#LABEL org.opencontainers.image.authors="[email protected]" | ||
#LABEL org.opencontainers.image.vendor="Cybersecurity and Infrastructure Security Agency" | ||
|
||
#ARG CISA_UID=421 | ||
#ENV CISA_HOME="/home/cisa" | ||
|
||
# RUN addgroup --system --gid ${CISA_UID} cisa \ | ||
# && adduser --system --uid ${CISA_UID} --ingroup cisa cisa | ||
|
||
RUN apt-get clean && apt-get update && apt-get install -y apt-utils | ||
RUN apt-get install -y ssl-cert && \ | ||
# TODO: test if this works on composition repo | ||
a2enmod rewrite proxy proxy_http headers cache && a2dismod -f deflate && \ | ||
a2enmod ssl && a2ensite default-ssl.conf | ||
|
||
# ENTRYPOINT ["/bin/bash -c", "echo 'Apache up and running'"] | ||
|
||
# WORKDIR ${CISA_HOME} | ||
# USER cisa | ||
RUN apt-get install -y ssl-cert | ||
RUN a2enmod rewrite proxy proxy_http headers cache ssl | ||
RUN a2dismod -f deflate | ||
RUN a2ensite default-ssl.conf |