forked from klakegg/docker-hugo
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create default nonroot user for ubuntu images (#140)
- Loading branch information
Showing
4 changed files
with
11 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM main as ext | ||
|
||
RUN addgroup --gid 1000 hugo \ | ||
&& adduser --uid 1000 --gid 1000 --disabled-password --gecos "" hugo \ | ||
&& chown -R hugo /src \ | ||
&& chown -R hugo /target | ||
|
||
USER hugo |
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 |
---|---|---|
|
@@ -64,6 +64,6 @@ IMPORT ../_imports/ci.df | |
|
||
IMPORT ../_imports/onbuild.df | ||
|
||
|
||
IMPORT ../_imports/default_nonroot_user.df | ||
|
||
FROM main |
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
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 |
---|---|---|
|
@@ -10,6 +10,6 @@ IMPORT ../_imports/ci.df | |
|
||
IMPORT ../_imports/onbuild.df | ||
|
||
|
||
IMPORT ../_imports/default_nonroot_user.df | ||
|
||
FROM main |