chore: add PATH to Dockerfile for ansible and bundle
All checks were successful
/ build-docker (push) Successful in 3m1s
All checks were successful
/ build-docker (push) Successful in 3m1s
This commit is contained in:
@ -1,10 +1,9 @@
|
|||||||
# Base image
|
# Base image
|
||||||
FROM debian:trixie-slim
|
FROM debian:trixie-slim
|
||||||
|
|
||||||
# Set environment variables
|
# Set environment variables (DEBIAN_FRONTEND and LANG)
|
||||||
ENV DEBIAN_FRONTEND=noninteractive \
|
ENV DEBIAN_FRONTEND=noninteractive \
|
||||||
LANG=C.UTF-8 \
|
LANG=C.UTF-8
|
||||||
PATH=/usr/local/bundle/bin:/opt/venv/bin:$PATH
|
|
||||||
|
|
||||||
# Install system dependencies
|
# Install system dependencies
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
@ -35,8 +34,12 @@ RUN gem install bundler jekyll
|
|||||||
RUN python3 -m venv /opt/venv \
|
RUN python3 -m venv /opt/venv \
|
||||||
&& /opt/venv/bin/pip install --no-cache-dir --upgrade pip ansible
|
&& /opt/venv/bin/pip install --no-cache-dir --upgrade pip ansible
|
||||||
|
|
||||||
|
# Update PATH globally for all shells/steps
|
||||||
|
ENV PATH=/usr/local/bundle/bin:/opt/venv/bin:$PATH
|
||||||
|
|
||||||
# Create workspace
|
# Create workspace
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
|
||||||
# Default shell
|
# Default shell
|
||||||
SHELL ["/bin/bash", "-c"]
|
SHELL ["/bin/bash", "-c"]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user