You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
524 B

FROM alpine:3.15
2 years ago
RUN apk update && apk upgrade && apk add npm \
&& npm install -g @nestjs/cli
2 years ago
WORKDIR /var/www/html
2 years ago
ENTRYPOINT npm install; \
if [[ $NODE_ENV == "production" ]]; then \
npm run build && npm run start:prod; \
elif [[ $NODE_ENV == "debug" ]]; then \
npm run start:debug; \
elif [[ $NODE_ENV == "check" ]]; then \
npm run format && npm run lint; echo "=== FINISH ==="; \
2 years ago
elif [[ $NODE_ENV == "development" ]]; then \
npm run dev; \
else echo "NODE_ENV value isn't known."; \
fi;