kopia lustrzana https://github.com/FacilMap/facilmap
Add Dockerfile for docs
rodzic
5c736f27bd
commit
c9a69b2147
|
@ -5,7 +5,6 @@ CMD yarn run server
|
|||
EXPOSE 8080
|
||||
|
||||
RUN apk add --no-cache yarn
|
||||
# g++ git make python2
|
||||
|
||||
RUN adduser -D -h /opt/facilmap -s /bin/sh facilmap
|
||||
|
||||
|
@ -17,10 +16,6 @@ RUN chown -R facilmap:facilmap /opt/facilmap
|
|||
|
||||
USER facilmap
|
||||
|
||||
#RUN mkdir ~/.local && npm config set prefix ~/.local && \
|
||||
# npm install -S mysql pg sqlite3 tedious && \
|
||||
# cd .. && npm run deps && npm run build
|
||||
|
||||
RUN cd .. && yarn install
|
||||
|
||||
RUN cd .. && yarn run build
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
node_modules
|
||||
src/.vuepress/dist
|
||||
Dockerfile
|
|
@ -0,0 +1,8 @@
|
|||
FROM httpd:2.4-alpine
|
||||
MAINTAINER Candid Dauth <cdauth@cdauth.eu>
|
||||
|
||||
RUN apk add --no-cache nodejs yarn
|
||||
|
||||
COPY ./ /tmp/facilmap-docs
|
||||
|
||||
RUN cd /tmp/facilmap-docs && yarn install && yarn build && mv src/.vuepress/dist/* /usr/local/apache2/htdocs/ && rm -rf /tmp/facilmap-docs
|
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/env sh
|
||||
set -e
|
||||
yarn build
|
||||
cd src/.vuepress/dist
|
||||
echo 'docs.facilmap.org' > CNAME
|
||||
git init
|
||||
git add -A
|
||||
git commit -m 'deploy'
|
||||
git push -f git@github.com:facilmap/facilmap-docs.git master
|
||||
cd -
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "facilmap-docs",
|
||||
"version": "0.0.1",
|
||||
"description": "A fully-featured OpenStreetMap-based map where markers and lines can be added with live collaboration.",
|
||||
"version": "3.0.0-beta3",
|
||||
"description": "Documentation for FacilMap.",
|
||||
"author": "Candid Dauth <cdauth@cdauth.eu>",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
Ładowanie…
Reference in New Issue