diff --git a/Dockerfile b/Dockerfile index bc89af3..2c0251f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:8.9.4-alpine +FROM node:9.7.1-alpine COPY ./ /var/www/html/wp-content/themes WORKDIR /var/www/html/wp-content/themes @@ -7,6 +7,4 @@ ENV NODE_ENV production RUN npm install -RUN npm run build - -RUN mv theme windycoys +CMD ["sh", "build.sh"] diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..e1a3bda --- /dev/null +++ b/build.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env sh + +npm run build + +cp -vfr theme windycoys + +cat windycoys/style.css