mirror of
https://github.com/pinry/pinry.git
synced 2025-11-15 17:35:50 +01:00
Feature: Make docker-auto build features
This commit is contained in:
committed by
Isaac Bythewood
parent
5577e27921
commit
953164cf04
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
|
|
||||||
# Base system is the LTS version of Ubuntu.
|
# Base system is the LTS version of Ubuntu.
|
||||||
FROM python:3.6-stretch
|
FROM python:3.7-stretch
|
||||||
|
|
||||||
RUN groupadd -g 2300 tmpgroup \
|
RUN groupadd -g 2300 tmpgroup \
|
||||||
&& usermod -g tmpgroup www-data \
|
&& usermod -g tmpgroup www-data \
|
||||||
@@ -41,6 +41,14 @@ RUN cd /srv/www/pinry \
|
|||||||
|
|
||||||
COPY . /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
|
# Fix permissions
|
||||||
RUN chown -R www-data:www-data /srv/www \
|
RUN chown -R www-data:www-data /srv/www \
|
||||||
&& cd /srv/www/pinry \
|
&& cd /srv/www/pinry \
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /app/pinry-spa/dist/;
|
root /srv/www/pinry/pinry-spa/dist/;
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user