Skip to content

Commit

Permalink
Merge pull request #1530 from vkuznet/aps-no-cas
Browse files Browse the repository at this point in the history
Remove cmsweb-base and /etc/grid-security from APS image
  • Loading branch information
arooshap authored Aug 5, 2024
2 parents f50ac09 + a410f2b commit 16d6306
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docker/auth-proxy-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV USER=http
WORKDIR $WDIR

# tag to use
ENV TAG=0.2.53
ENV TAG=0.2.81

ARG CGO_ENABLED=0
RUN mkdir $WDIR/gopath
Expand All @@ -14,12 +14,9 @@ RUN git clone https://github.com/vkuznet/auth-proxy-server.git
WORKDIR $WDIR/auth-proxy-server
RUN git checkout tags/$TAG -b build && make

FROM cmssw/cmsweb-base:latest as cmsweb-base

# https://blog.baeke.info/2021/03/28/distroless-or-scratch-for-go-apps/
# FROM alpine
FROM gcr.io/distroless/static AS final
#RUN mkdir -p /data/static && mkdir -p /data/srv/logs/frontend
COPY --from=go-builder /data/auth-proxy-server/auth-proxy-server /data/
COPY --from=go-builder /data/auth-proxy-server/static/cmsmon/index.html /data/static/
COPY --from=cmsweb-base /etc/grid-security /etc/grid-security

0 comments on commit 16d6306

Please sign in to comment.