Skip to content

Commit

Permalink
IGU-00 nginx is not allowed in development image
Browse files Browse the repository at this point in the history
  • Loading branch information
mammo0 committed Feb 23, 2024
1 parent f313ca4 commit 5e21064
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@ FROM $BASE_IMAGE AS builder

# variables
ARG APP_DIR
ARG USE_NGINX
ARG VARIANT

# validate build arguments
RUN if [ "$VARIANT" == "development" ] && [ "$USE_NGINX" == "true" ]; then \
>&2 echo "ERROR: No nginx server allowed in 'development' image!"; \
exit 1; \
fi

# install dependencies
RUN apk add --no-cache \
git \
Expand Down

0 comments on commit 5e21064

Please sign in to comment.