-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
… Scanner on PR review Signed-off-by: Alfredo Gutierrez <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,15 @@ | ||
FROM envoyproxy/envoy:v1.28-latest | ||
|
||
# Copy the Filter Scripts | ||
COPY /filters/ /etc/envoy/filters/ | ||
# Copy the Configs templates | ||
COPY /configs/ /etc/envoy/configs/ | ||
# Copy the start script | ||
COPY /scripts/start-envoy.sh /etc/envoy/start-envoy.sh | ||
|
||
# Make the script executable | ||
RUN chmod +x /etc/envoy/start-envoy.sh | ||
# give ownership to envoy user | ||
RUN chown -R envoy:envoy /etc/envoy | ||
|
||
# install gettext for envsubst | ||
RUN apt-get update | ||
RUN apt-get install -y gettext-base | ||
|
||
# Install Lua and Luarocks | ||
RUN apt-get update && apt-get install -y lua5.1 luarocks git | ||
|
||
# clean up temp data | ||
RUN rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Lua modules | ||
RUN luarocks install lua-cjson | ||
|
||
# Install http socket module | ||
RUN luarocks install luasocket | ||
FROM envoyproxy/envoy:v1.28-latest | ||
Check failure on line 1 in auth-layer-proxy/Dockerfile Wiz Inc. (8f76296f7c) / Wiz IaC ScannerMissing User Instruction
Raw output
Check notice on line 1 in auth-layer-proxy/Dockerfile Wiz Inc. (8f76296f7c) / Wiz IaC ScannerHealthcheck Instruction Missing
Raw output
|
||
|
||
# Copy all necessary files | ||
COPY /filters/ /etc/envoy/filters/ | ||
COPY /configs/ /etc/envoy/configs/ | ||
COPY /scripts/start-envoy.sh /etc/envoy/start-envoy.sh | ||
|
||
# Make the start script executable, change ownership, install dependencies, and clean up in a single RUN to reduce layers | ||
RUN chmod +x /etc/envoy/start-envoy.sh && \ | ||
Check warning on line 9 in auth-layer-proxy/Dockerfile Wiz Inc. (8f76296f7c) / Wiz IaC ScannerApt Get Install Pin Version Not Defined
Raw output
Check warning on line 9 in auth-layer-proxy/Dockerfile Wiz Inc. (8f76296f7c) / Wiz IaC ScannerApt Get Install Pin Version Not Defined
Raw output
Check warning on line 9 in auth-layer-proxy/Dockerfile Wiz Inc. (8f76296f7c) / Wiz IaC ScannerApt Get Install Pin Version Not Defined
Raw output
Check warning on line 9 in auth-layer-proxy/Dockerfile Wiz Inc. (8f76296f7c) / Wiz IaC ScannerApt Get Install Pin Version Not Defined
Raw output
Check notice on line 9 in auth-layer-proxy/Dockerfile Wiz Inc. (8f76296f7c) / Wiz IaC ScannerAPT-GET Not Avoiding Additional Packages
Raw output
|
||
chown -R envoy:envoy /etc/envoy && \ | ||
apt-get update && \ | ||
apt-get install -y gettext-base lua5.1 luarocks git && \ | ||
luarocks install lua-cjson && \ | ||
luarocks install luasocket && \ | ||
rm -rf /var/lib/apt/lists/* |