Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reworked some Dockerfiles to improve cache usage. #183

Merged
merged 1 commit into from
Apr 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions cmd/controller/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM alpine:3.7

COPY ./bin/controller /home/agones/controller
COPY ./certs /home/agones/certs
RUN apk --update add ca-certificates && \
adduser -D agones && \
chown -R agones /home/agones && \
chmod o+x /home/agones/controller
adduser -D agones

COPY ./certs /home/agones/certs
COPY ./bin/controller /home/agones/controller

RUN chown -R agones /home/agones && \
chmod o+x /home/agones/controller

USER agones
ENTRYPOINT ["/home/agones/controller"]
10 changes: 6 additions & 4 deletions cmd/sdk-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
FROM alpine:3.7

COPY ./bin/sdk-server.linux.amd64 /home/agones/sdk-server
RUN apk --update add ca-certificates && \
adduser -D agones && \
chown -R agones /home/agones && \
chmod o+x /home/agones/sdk-server
adduser -D agones

COPY ./bin/sdk-server.linux.amd64 /home/agones/sdk-server

RUN chown -R agones /home/agones && \
chmod o+x /home/agones/sdk-server

USER agones
ENTRYPOINT ["/home/agones/sdk-server"]
6 changes: 4 additions & 2 deletions examples/simple-udp/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@

FROM alpine:3.7

RUN adduser -D server

COPY ./bin/server /home/server/server
RUN adduser -D server && \
chown -R server /home/server && \
RUN chown -R server /home/server && \
chmod o+x /home/server/server

USER server
Expand Down