Add Dockerfile for docs

pull/147/head
Candid Dauth 2021-04-08 22:28:16 +02:00
rodzic 5c736f27bd
commit c9a69b2147
5 zmienionych plików z 13 dodań i 17 usunięć

Wyświetl plik

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

Wyświetl plik

@ -0,0 +1,3 @@
node_modules
src/.vuepress/dist
Dockerfile

8
docs/Dockerfile 100644
Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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