Clean Sonar findings: merge RUNs, drop commented code, update node imports
This commit is contained in:
parent
37ffd09545
commit
405e801851
7 changed files with 44 additions and 72 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -45,13 +45,12 @@ RUN apt-get update \
|
|||
/var/lib/apt/lists/* \
|
||||
/var/tmp/*
|
||||
|
||||
RUN useradd -ms /bin/bash fgc
|
||||
|
||||
# RUN node --version
|
||||
# RUN npm --version
|
||||
|
||||
RUN ln -s /usr/share/novnc/vnc_auto.html /usr/share/novnc/index.html
|
||||
RUN pip install apprise
|
||||
RUN useradd -ms /bin/bash fgc \
|
||||
&& ln -s /usr/share/novnc/vnc_auto.html /usr/share/novnc/index.html \
|
||||
&& pip install apprise
|
||||
|
||||
WORKDIR /fgc
|
||||
COPY package*.json ./
|
||||
|
|
@ -71,8 +70,7 @@ COPY test ./test
|
|||
COPY docker-entrypoint.sh ./
|
||||
|
||||
# Shell scripts need Linux line endings. On Windows, git might be configured to check out dos/CRLF line endings, so we convert them for those people in case they want to build the image. They could also use --config core.autocrlf=input
|
||||
RUN dos2unix ./*.sh && chmod +x ./*.sh
|
||||
RUN chown -R fgc:fgc /fgc
|
||||
RUN dos2unix ./*.sh && chmod +x ./*.sh && chown -R fgc:fgc /fgc
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
|
||||
ARG COMMIT=""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue