we actually need to fetch that thang!
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
#almond cloud tag/version
|
||||
ARG VER="v1.99.0"
|
||||
|
||||
FROM debian:bullseye
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
ARG DEVPKGS="git make cmake gcc g++ python-dev libsqlcipher-dev"
|
||||
|
||||
RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.list && \
|
||||
@@ -10,11 +11,11 @@ RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.li
|
||||
apt-get -y install ${DEVPKGS} python3-pip python3-torch graphicsmagick zip unzip bubblewrap \
|
||||
sqlcipher gettext nodejs npm && \
|
||||
pip3 install tensorboardX && \
|
||||
pip3 install 'git+https://github.com/stanford-oval/genienlp@0969c6ea74376b20982c0c8bea9a4732547b15cb#egg=genienlp'
|
||||
pip3 install 'git+https://github.com/stanford-oval/genienlp@0969c6ea74376b20982c0c8bea9a4732547b15cb#egg=genienlp' && \
|
||||
cd /opt; git clone https://github.com/stanford-oval/almond-cloud.git --branch ${VER} --single-branch
|
||||
|
||||
#setup
|
||||
RUN useradd -ms /bin/bash -r almond-cloud && id almond-cloud
|
||||
COPY --chown=almond-cloud:almond-cloud start.sh /opt/almond-cloud/
|
||||
WORKDIR /opt/almond-cloud/
|
||||
RUN chown -R almond-cloud:almond-cloud /opt/almond-cloud && \
|
||||
echo "build_from_source = true" > ~almond-cloud/.npmrc && \
|
||||
@@ -26,6 +27,8 @@ RUN chown -R almond-cloud:almond-cloud /opt/almond-cloud && \
|
||||
echo "OPT"; ls -la /opt/almond-cloud && \
|
||||
echo "HOME"; ls -la /home/almond-cloud
|
||||
|
||||
COPY --chown=almond-cloud:almond-cloud start.sh /opt/almond-cloud/
|
||||
|
||||
# CLeanup
|
||||
RUN apt-get remove -y --purge ${DEVPKGS} && \
|
||||
apt-get autoremove --purge -y && \
|
||||
|
||||
Reference in New Issue
Block a user