Fix some things; Athens is not yet intended to be self-hosted on web yet :X
This commit is contained in:
parent
ebce5287c0
commit
83dd635908
@ -4,7 +4,7 @@
|
|||||||
"author": "Athens Project",
|
"author": "Athens Project",
|
||||||
"description": "Outliner note taking app similar to Roam Research",
|
"description": "Outliner note taking app similar to Roam Research",
|
||||||
"tagline": "It's annoying to have to type a tagline for a test project",
|
"tagline": "It's annoying to have to type a tagline for a test project",
|
||||||
"version": "0.0.1",
|
"version": "0.0.7",
|
||||||
"healthCheckPath": "/",
|
"healthCheckPath": "/",
|
||||||
"httpPort": 3000,
|
"httpPort": 3000,
|
||||||
"addons": {
|
"addons": {
|
||||||
|
14
Dockerfile
14
Dockerfile
@ -1,17 +1,27 @@
|
|||||||
FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92
|
FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92
|
||||||
|
|
||||||
RUN mkdir -p /app/code
|
ARG VERSION=v1.0.0-beta.50
|
||||||
|
|
||||||
WORKDIR /app/code
|
WORKDIR /app/code
|
||||||
|
|
||||||
RUN apt-get update -y && apt-get install -y leiningen && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update -y && apt-get install -y leiningen && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ARG VERSION=v1.0.0-beta.49
|
|
||||||
RUN curl -L https://github.com/athensresearch/athens/archive/${VERSION}.tar.gz | tar -xz --strip-components 1 -f -
|
RUN curl -L https://github.com/athensresearch/athens/archive/${VERSION}.tar.gz | tar -xz --strip-components 1 -f -
|
||||||
|
|
||||||
RUN yarn --frozen-lockfile
|
RUN yarn --frozen-lockfile
|
||||||
RUN lein do compile
|
RUN lein do compile
|
||||||
|
RUN lein with-profile prod test-jvm
|
||||||
|
RUN lein prod
|
||||||
|
|
||||||
COPY start.sh /app/code/start.sh
|
COPY start.sh /app/code/start.sh
|
||||||
|
RUN chmod +x /app/code/start.sh
|
||||||
|
|
||||||
|
RUN ln -sfn /app/data/pom.properties /app/code/target/classes/META-INF/maven/athens/athens/pom.properties
|
||||||
|
|
||||||
|
RUN mkdir -p /run/shadow-cljs && \
|
||||||
|
mv /app/code/.shadow-cljs/* /run/shadow-cljs && \
|
||||||
|
rmdir /app/code/.shadow-cljs && \
|
||||||
|
ln -s /app/code/.shadow-cljs /run/shadow-cljs
|
||||||
|
|
||||||
CMD /app/code/start.sh
|
CMD /app/code/start.sh
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user