fix: update Dockerfile to fix build error
- Add proper USER commands - Add set -ex for better error handling - Fix apache2-utils installation
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
FROM registry:2
|
FROM registry:2
|
||||||
|
|
||||||
|
USER root
|
||||||
# Install Apache utilities for htpasswd management
|
# Install Apache utilities for htpasswd management
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN set -ex \
|
||||||
apache2-utils \
|
&& apt-get update \
|
||||||
|
&& apt-get install -y apache2-utils \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
USER nobody
|
||||||
Reference in New Issue
Block a user