Feature: Make docker-auto build features

This commit is contained in:
winkidney
2019-12-08 16:12:38 +08:00
committed by Isaac Bythewood
parent 5577e27921
commit 953164cf04
2 changed files with 10 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
# Base system is the LTS version of Ubuntu.
FROM python:3.6-stretch
FROM python:3.7-stretch
RUN groupadd -g 2300 tmpgroup \
&& usermod -g tmpgroup www-data \
@@ -41,6 +41,14 @@ RUN cd /srv/www/pinry \
COPY . /srv/www/pinry/
# config nodejs and build frontend
RUN curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n
RUN bash n 10
RUN npm -g install yarn
# build frontend
RUN cd /srv/www/pinry/pinry-spa/ && yarn install && yarn build
# Fix permissions
RUN chown -R www-data:www-data /srv/www \
&& cd /srv/www/pinry \

View File

@@ -26,7 +26,7 @@ server {
}
location / {
root /app/pinry-spa/dist/;
root /srv/www/pinry/pinry-spa/dist/;
access_log off;
}
}