Move build tasks in to shell script

This commit is contained in:
2018-03-07 17:42:52 +00:00
parent b0efd5aef3
commit 0a50282c27
2 changed files with 9 additions and 4 deletions

View File

@@ -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"]