This commit is contained in:
aynic.os
2021-06-13 02:09:57 +02:00
parent 4f390ce36a
commit 743e874c59
64 changed files with 297 additions and 661 deletions
+2 -16
View File
@@ -1,7 +1,7 @@
FROM alpine:latest as dist
ARG DOCKER_BUILD_DIR
LABEL maintainer 1001Pharmacies <technique+docker@1001pharmacies.com>
LABEL maintainer aynic.os <support+docker@asycn.io>
# Install dependencies
RUN apk add --no-cache \
@@ -22,7 +22,7 @@ ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["ssh-agent"]
FROM dist as local
FROM dist as master
ARG DOCKER_BUILD_DIR
ARG UID
ARG GID
@@ -30,8 +30,6 @@ ARG USER
ENV UID=${UID}
ENV GID=${UID}
ENV USER=${USER}
LABEL com.1001pharmacies.uid=${UID}
LABEL com.1001pharmacies.user=${USER}
# If we provide a specific UID
RUN let $UID >/dev/null 2>&1 \
@@ -54,15 +52,3 @@ RUN let $UID >/dev/null 2>&1 \
|| true
USER $USER
FROM local as debug
ARG DOCKER_BUILD_DIR
FROM local as tests
ARG DOCKER_BUILD_DIR
FROM tests as preprod
ARG DOCKER_BUILD_DIR
FROM preprod as prod
ARG DOCKER_BUILD_DIR