changed alpine www-data user
This commit is contained in:
parent
ec3c69b9cb
commit
917015ff3c
1 changed files with 5 additions and 6 deletions
|
|
@ -74,10 +74,10 @@ WORKDIR /clixon/clixon
|
||||||
COPY clixon .
|
COPY clixon .
|
||||||
|
|
||||||
# Need to add www user manually
|
# Need to add www user manually
|
||||||
RUN adduser -D -H www-data
|
RUN adduser -D -H -G www-data www-data
|
||||||
|
|
||||||
# Configure, build and install clixon
|
# Configure, build and install clixon
|
||||||
RUN ./configure --prefix=/clixon/build --with-cligen=/clixon/build --enable-optyangs --with-restconf=native
|
RUN ./configure --prefix=/clixon/build --with-cligen=/clixon/build --enable-optyangs --with-restconf=native --disable-nghttp2 --enable-evhtp
|
||||||
|
|
||||||
RUN make
|
RUN make
|
||||||
RUN make install
|
RUN make install
|
||||||
|
|
@ -113,7 +113,7 @@ MAINTAINER Olof Hagsand <olof@hagsand.se>
|
||||||
RUN apk add --update flex bison
|
RUN apk add --update flex bison
|
||||||
|
|
||||||
# need to add www user manually
|
# need to add www user manually
|
||||||
RUN adduser -D -H www-data
|
RUN adduser -D -H -G www-data www-data
|
||||||
# for libevtp
|
# for libevtp
|
||||||
RUN apk add --update openssl libevent
|
RUN apk add --update openssl libevent
|
||||||
|
|
||||||
|
|
@ -126,15 +126,14 @@ EXPOSE 443/tcp
|
||||||
|
|
||||||
# Create clicon user and group
|
# Create clicon user and group
|
||||||
RUN adduser -D -H clicon
|
RUN adduser -D -H clicon
|
||||||
RUN adduser www-data clicon
|
|
||||||
|
|
||||||
COPY --from=0 /clixon/build/ /usr/local/
|
COPY --from=0 /clixon/build/ /usr/local/
|
||||||
COPY --from=0 /usr/local/lib/libevhtp.so* /usr/local/lib/
|
COPY --from=0 /usr/local/lib/libevhtp.so* /usr/local/lib/
|
||||||
|
|
||||||
# Manually created
|
# Manually created
|
||||||
RUN mkdir /www-data
|
RUN mkdir /www-data
|
||||||
RUN chown www-data /www-data
|
RUN chown clicon /www-data
|
||||||
RUN chgrp www-data /www-data
|
RUN chgrp clicon /www-data
|
||||||
|
|
||||||
# Log to stderr.
|
# Log to stderr.
|
||||||
CMD /usr/local/bin/startsystem.sh
|
CMD /usr/local/bin/startsystem.sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue