Docker/Release: Add more state files, improved Dockerfiles
parent
aa11bead7c
commit
c7deeb9368
@ -1,12 +1,13 @@
|
||||
FROM node:8-alpine as themes
|
||||
WORKDIR /app
|
||||
RUN apk add --no-cache yarn
|
||||
COPY .babelrc package.json webpack.config.js /app/
|
||||
COPY .babelrc .browserslistrc package.json webpack.config.js /app/
|
||||
RUN yarn install
|
||||
COPY resources/assets/ /app/resources/assets
|
||||
RUN yarn build
|
||||
|
||||
FROM nginx:alpine
|
||||
RUN mkdir -p /var/www/public/ && touch /var/www/public/index.php
|
||||
COPY contrib/nginx/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY --from=themes /app/public/assets /var/www/public/assets/
|
||||
RUN touch /var/www/public/index.php
|
||||
COPY --from=themes /app/yarn.lock /var/www/
|
||||
|
Loading…
Reference in New Issue