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.

15 lines
405 B

FROM alpine:3.15
2 years ago
RUN apk update && apk upgrade && apk add npm
WORKDIR /var/www/html
2 years ago
2 years ago
ENTRYPOINT npm install; \
if [[ $NODE_ENV == "production" ]]; then \
npm run build && npm run preview; \
elif [[ $NODE_ENV == "development" ]]; then \
2 years ago
npm run dev; \
elif [[ $NODE_ENV == "debug" ]]; then \
npm run check && npm run dev; \
else echo "Nothing to do for that NODE_ENV context."; \
2 years ago
fi;