Skip to content

Commit

Permalink
Merge pull request #8 from OpenCHAMI/alexlovelltroy-patch-3
Browse files Browse the repository at this point in the history
Update Dockerfile to match flag usage to actual behavior
  • Loading branch information
alexlovelltroy committed May 7, 2024
2 parents 16c14e8 + 922a82b commit 2c368cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
# OTHER DEALINGS IN THE SOFTWARE.

FROM cgr.dev/chainguard/wolfi-base
EXPOSE 27777
STOPSIGNAL SIGTERM

RUN apk add --no-cache tini
Expand All @@ -38,13 +37,13 @@ COPY cloud-init-server /usr/local/bin/

ENV SMD_URL="http://smd:27779"
ENV SMD_TOKEN=""
ENV LISTEN_PORT="27777"
ENV LISTEN_ADDR="0.0.0.0:27777"

# nobody 65534:65534
USER 65534:65534

# Set up the command to start the service.
CMD /usr/local/bin/cloud-init-server --listen ${LISTEN_PORT} --smd-url ${SMD_URL} --smd-token ${SMD_TOKEN}
CMD /usr/local/bin/cloud-init-server --listen ${LISTEN_ADDR} --smd-url ${SMD_URL} --smd-token ${SMD_TOKEN}


ENTRYPOINT ["/sbin/tini", "--"]

0 comments on commit 2c368cd

Please sign in to comment.