Cloudron app build for Athens Research
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
820 B

FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92
ARG VERSION=v1.0.0-beta.50
WORKDIR /app/code
RUN apt-get update -y && apt-get install -y leiningen && rm -rf /var/lib/apt/lists/*
RUN curl -L${VERSION}.tar.gz | tar -xz --strip-components 1 -f -
RUN yarn --frozen-lockfile
RUN lein do compile
RUN lein with-profile prod test-jvm
RUN lein prod
COPY /app/code/
RUN chmod +x /app/code/
RUN ln -sfn /app/data/ /app/code/target/classes/META-INF/maven/athens/athens/
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/