Updating for initial base image.
All checks were successful
build-publish / docker (push) Successful in 1m3s
All checks were successful
build-publish / docker (push) Successful in 1m3s
This commit is contained in:
parent
07f5f9ee94
commit
7c0c7c7856
4
.env
4
.env
@ -1,4 +1,4 @@
|
|||||||
# target
|
# target
|
||||||
REG=zima1.abutili.net:3002
|
REG=zima1.abutili.net:3002
|
||||||
NS=devops
|
NS=images
|
||||||
IMG=container-build-publish
|
IMG=base
|
||||||
|
|||||||
18
Dockerfile
18
Dockerfile
@ -5,18 +5,19 @@ ARG VERSION=dev
|
|||||||
ARG VCS_REF=unknown
|
ARG VCS_REF=unknown
|
||||||
ARG BUILD_DATE=unknown
|
ARG BUILD_DATE=unknown
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="container-build-publish" \
|
LABEL org.opencontainers.image.title="base" \
|
||||||
org.opencontainers.image.version="${VERSION}" \
|
org.opencontainers.image.version="${VERSION}" \
|
||||||
org.opencontainers.image.revision="${VCS_REF}" \
|
org.opencontainers.image.revision="${VCS_REF}" \
|
||||||
org.opencontainers.image.created="${BUILD_DATE}" \
|
org.opencontainers.image.created="${BUILD_DATE}" \
|
||||||
org.opencontainers.image.source="https://git.abutili.net/templates/container-build-publish"
|
org.opencontainers.image.source="https://git.abutili.net/images/base"
|
||||||
|
|
||||||
# install system deps
|
# Install essential base system dependencies
|
||||||
#RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
# ca-certificates curl bash jq xz-utils git \
|
ca-certificates \
|
||||||
# && rm -rf /var/lib/apt/lists/*
|
curl \
|
||||||
|
bash \
|
||||||
# install app
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Non-root user (safer)
|
# Non-root user (safer)
|
||||||
RUN useradd -ms /bin/bash runner
|
RUN useradd -ms /bin/bash runner
|
||||||
@ -25,4 +26,3 @@ WORKDIR /workspace
|
|||||||
|
|
||||||
# Default shell
|
# Default shell
|
||||||
SHELL ["/bin/bash", "-eo", "pipefail", "-c"]
|
SHELL ["/bin/bash", "-eo", "pipefail", "-c"]
|
||||||
# ENTRYPOINT
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user