Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
5d7fae60
Commit
5d7fae60
authored
Oct 22, 2017
by
Jeromy Johnson
Committed by
GitHub
Oct 22, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4331 from ipfs/fix/gecos
Dockerfiles: do not set gecos field on user add. Set group.
parents
005d243c
b57539c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Dockerfile
Dockerfile
+3
-3
Dockerfile.fast
Dockerfile.fast
+2
-2
No files found.
Dockerfile
View file @
5d7fae60
...
...
@@ -35,7 +35,7 @@ RUN set -x \
&& chmod +x tini
# Get the TLS CA certificates, they're not provided by busybox.
RUN
apt-get
install
-y
ca-certificates
RUN
apt-get
update
&&
apt-get
install
-y
ca-certificates
# Now comes the actual target image, which aims to be as small as possible.
FROM
busybox:1-glibc
...
...
@@ -62,8 +62,8 @@ EXPOSE 8081
# Create the fs-repo directory and switch to a non-privileged user.
ENV
IPFS_PATH /data/ipfs
RUN
mkdir
-p
$IPFS_PATH
\
&&
adduser
-D
-h
$IPFS_PATH
-u
1000
-
g
100
ipfs
\
&&
chown
1000:100
$IPFS_PATH
&&
adduser
-D
-h
$IPFS_PATH
-u
1000
-
G
users
ipfs
\
&&
chown
ipfs:users
$IPFS_PATH
# Expose the fs-repo as a volume.
# start_ipfs initializes an fs-repo if none is mounted.
...
...
Dockerfile.fast
View file @
5d7fae60
...
...
@@ -58,8 +58,8 @@ EXPOSE 8081
# Create the fs-repo directory and switch to a non-privileged user.
ENV IPFS_PATH /data/ipfs
RUN mkdir -p $IPFS_PATH \
&& useradd -s /usr/sbin/nologin -d $IPFS_PATH -u 1000 -
g 100
ipfs \
&& chown
1000:100
$IPFS_PATH
&& useradd -s /usr/sbin/nologin -d $IPFS_PATH -u 1000 -
G users
ipfs \
&& chown
ipfs:users
$IPFS_PATH
# Expose the fs-repo as a volume.
# start_ipfs initializes an fs-repo if none is mounted.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment