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:
10
Dockerfile
10
Dockerfile
@@ -1,6 +1,10 @@
|
||||
FROM registry:2
|
||||
|
||||
USER root
|
||||
# Install Apache utilities for htpasswd management
|
||||
RUN apt-get update && apt-get install -y \
|
||||
apache2-utils \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y apache2-utils \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
USER nobody
|
||||
Reference in New Issue
Block a user