代码拉取完成,页面将自动刷新
FROM clojure:temurin-11-tools-deps-1.11.1.1165-bullseye-slim
RUN mkdir -p /usr/src/flureedb
WORKDIR /usr/src/flureedb
# Install the tools we need to install the tools we need
RUN apt-get update && apt-get install -y wget curl gnupg2 software-properties-common chromium
ENV CHROME_BIN=/usr/bin/chromium
# Add node PPA to get newer versions
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get update && apt-get install -y nodejs build-essential
COPY deps.edn Makefile ./
RUN make deps
COPY package.json ./
RUN npm install && npm install -g karma-cli
COPY . ./
RUN make jar
# Create a user to own the fluree code
RUN groupadd fluree && useradd --no-log-init -g fluree -m fluree
# move clj deps to fluree's home
# double caching in image layers is unfortunate, but setting this user
# earlier in the build caused its own set of issues
RUN mv /root/.m2 /home/fluree/.m2 && chown -R fluree.fluree /home/fluree/.m2
RUN chown -R fluree.fluree .
USER fluree
ENTRYPOINT []
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。