Skip to content

Commit

Permalink
Update Debian version for CPP example (googleforgames#1609)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Mandel <markmandel@google.com>
  • Loading branch information
2 people authored and ilkercelikyilmaz committed Oct 23, 2020
1 parent e5a92f1 commit 117f590
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions examples/cpp-simple/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ RUN cd cpp-simple && mkdir -p .build && \
cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=.bin && \
cmake --build . --target install

FROM debian:stretch
FROM debian:buster
RUN useradd -u 1000 -m server

COPY --from=builder /project/cpp-simple/.build/.bin/cpp-simple /home/server/cpp-simple
RUN chown -R server /home/server && \
chmod o+x /home/server/cpp-simple
COPY --from=builder --chown=server:server /project/cpp-simple/.build/.bin/cpp-simple /home/server/cpp-simple

USER 1000
ENTRYPOINT /home/server/cpp-simple
2 changes: 1 addition & 1 deletion examples/cpp-simple/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ REPOSITORY = gcr.io/agones-images
# Directory that this Makefile is in.
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
project_path := $(dir $(mkfile_path))
server_tag = $(REPOSITORY)/cpp-simple-server:0.12
server_tag = $(REPOSITORY)/cpp-simple-server:0.13
root_path = $(realpath $(project_path)/../..)

# _____ _
Expand Down

0 comments on commit 117f590

Please sign in to comment.