• cat <<EOF
    FROM docker.sirap.fr/swap/devbox/api:latest
    ARG username="developer"
    ARG password="developer"
    ARG uid="1000"
    EXPOSE 3000 8448
    LABEL Author="Rémi Becheras <r.becheras@sirap.fr>"
    USER 0
    VOLUME [ "/data" ]
    RUN deluser developer \
      && adduser \
        --disabled-password \
        --home "/home/${username}" \
        --shell /bin/bash \
        --uid "${uid}" \
        --gecos "" \
        "${username}" \
      && echo "${username}:${password}" | chpasswd
    
    USER ${username}
    WORKDIR "/home/${username}"
    COPY ./scripts ./scripts
    RUN ./scripts/gitconf/global-gitlab && ./scripts/gitconf/global-swap
    
    WORKDIR "/home/${username}/app"
    CMD [ "bash" ]
    
    EOF > devbox.Dockerfile
    docker build -t devbox .
    Edited by Rémi Becheras
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment