mirror of
https://github.com/tiennm99/docker-images.git
synced 2026-10-14 02:16:03 +00:00
Reorder user creation in Dockerfile
Moved the group and user creation for 'couchbase' before Couchbase installation steps. This ensures the user exists prior to package installation, which may be required for proper permissions or setup.
This commit is contained in:
1 parent
e93bdcbf9e
commit
92ab83b0bd
1 file changed
+1
-3
@@ -12,16 +12,14 @@ ENV PATH=$PATH:/opt/couchbase/bin:/opt/couchbase/bin/tools:/opt/couchbase/bin/in
|
||||
RUN sed -i 's|http://archive.ubuntu.com/ubuntu/|http://old-releases.ubuntu.com/ubuntu/|g' /etc/apt/sources.list && \
|
||||
sed -i 's|http://security.ubuntu.com/ubuntu|http://old-releases.ubuntu.com/ubuntu|g' /etc/apt/sources.list && \
|
||||
apt-get update
|
||||
|
||||
RUN apt-get install -y wget
|
||||
RUN wget --no-check-certificate $CB_RELEASE_URL/$CB_VERSION/$CB_PACKAGE
|
||||
RUN apt-get install -y libssl0.9.8
|
||||
RUN apt-get install -y librtmp0
|
||||
RUN groupadd -g 1000 couchbase && useradd couchbase -u 1000 -g couchbase -M
|
||||
RUN export INSTALL_DONT_START_SERVER=1 && \
|
||||
dpkg -i ./$CB_PACKAGE && rm -f ./$CB_PACKAGE
|
||||
|
||||
RUN groupadd -g 1000 couchbase && useradd couchbase -u 1000 -g couchbase -M
|
||||
|
||||
EXPOSE 8091 8092 11210 11211
|
||||
|
||||
CMD ["couchbase-server"]
|
||||
Reference in new issue
Block a user