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.
12 lines
338 B
12 lines
338 B
FROM alpine:3.15
|
|
|
|
RUN apk update && apk upgrade && apk add npm
|
|
WORKDIR /var/www/html
|
|
|
|
ENTRYPOINT npm install; \
|
|
if [[ $NODE_ENV == "production" ]]; then \
|
|
npm run build && npm run preview; \
|
|
elif [[ $NODE_ENV == "development" || $NODE_ENV == "debug" ]]; then \
|
|
npm run dev; \
|
|
else echo "NODE_ENV value isn't known."; \
|
|
fi;
|
|
|