Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Apr 3, 2024
1 parent 34ae39a commit acaa93a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ WORKDIR ${APPDIR}

EXPOSE 27016/udp

ARG MOD
ENV MOD=${MOD}

COPY --chmod=755 utils/* utils/

RUN export LAUNCH_ARGS=$(utils/getLaunchParamsByMod.sh ${MOD})
ENV LAUNCH_ARGS=${LAUNCH_ARGS}

RUN echo '--------------------------- ${LAUNCH_ARGS}}'

# Set entrypoint and default command
ENTRYPOINT ["sh", "-c"]
CMD ["./hlds_run -game valve -debug +ip 0.0.0.0 -port 27016 -maxplayers 10 +map crossfire"]
ENTRYPOINT ./hlds_run ${LAUNCH_ARGS}

Check failure on line 84 in Dockerfile

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

Dockerfile#L84

By not specifying a USER, a program in the container may run as 'root'. This is a security hazard.

0 comments on commit acaa93a

Please sign in to comment.