Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworked some Dockerfiles to improve cache usage.
- Loading branch information
1 parent
1f6cb60
commit 86b727c
Showing
3 changed files
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters